| | |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx2); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx3); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx4); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx5); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, "", "", (value) => |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0); |
| | |
| | | gvList.Add(gvMx1); |
| | | gvList.Add(gvMx2); |
| | | gvList.Add(gvMx3); |
| | | gvList.Add(gvMx4); |
| | | gvList.Add(gvMx5); |
| | | UtilityHelper.SetValueByObj(this.layoutMx1.Controls, dy, isEdit, gvList); |
| | | JObject _job = JObject.Parse(strJson); |
| | | JArray array = new JArray(); |
| | |
| | | array3.Add(a); |
| | | } |
| | | DataTable dt3 = JsonConvert.DeserializeObject<DataTable>(array3.ToString()); |
| | | if (dt2.Rows.Count > 0) |
| | | if (dt3.Rows.Count > 0) |
| | | { |
| | | gcMx3.BindingContext = new BindingContext(); |
| | | gcMx3.DataSource = dt3; |
| | |
| | | else |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx3, gvMx3); |
| | | } |
| | | |
| | | JArray array4 = new JArray(); |
| | | foreach (var a in _job["rtnData"]["list4"]) |
| | | { |
| | | array4.Add(a); |
| | | } |
| | | DataTable dt4 = JsonConvert.DeserializeObject<DataTable>(array4.ToString()); |
| | | if (dt4.Rows.Count > 0) |
| | | { |
| | | gcMx4.BindingContext = new BindingContext(); |
| | | gcMx4.DataSource = dt4; |
| | | gcMx4.ForceInitialize(); |
| | | gvMx4.BestFitColumns(); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gvMx4); |
| | | } |
| | | else |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx4, gvMx4); |
| | | } |
| | | |
| | | JArray array5= new JArray(); |
| | | foreach (var a in _job["rtnData"]["list5"]) |
| | | { |
| | | array5.Add(a); |
| | | } |
| | | DataTable dt5 = JsonConvert.DeserializeObject<DataTable>(array5.ToString()); |
| | | if (dt5.Rows.Count > 0) |
| | | { |
| | | gcMx5.BindingContext = new BindingContext(); |
| | | gcMx5.DataSource = dt5; |
| | | gcMx5.ForceInitialize(); |
| | | gvMx5.BestFitColumns(); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gvMx5); |
| | | } |
| | | else |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx5, gvMx5); |
| | | } |
| | | } |
| | | else |
| | |
| | | frm.ShowDialog(); |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// 过站时绑定线体 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | private void repositoryItemButtonEdit1_ButtonClick(object sender, ButtonPressedEventArgs e) |
| | | { |
| | | if (e.Button.Index == 0) |
| | | { |
| | | var rowhandle = gridView1.FocusedRowHandle; |
| | | var dr = gridView1.GetDataRow(rowhandle); |
| | | var userGuid = dr["guid"].ToString(); |
| | | var frm = new SelectLine(userGuid); |
| | | frm.ShowDialog(); |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// 绑定组织 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | private void repositoryItemButtonEdit5_ButtonClick(object sender, ButtonPressedEventArgs e) |
| | | { |
| | | if (e.Button.Index == 0) |
| | | { |
| | | var rowhandle = gridView1.FocusedRowHandle; |
| | | var dr = gridView1.GetDataRow(rowhandle); |
| | | var userGuid = dr["guid"].ToString(); |
| | | var frm = new SelectZZ(userGuid); |
| | | frm.ShowDialog(); |
| | | } |
| | | } |
| | | |
| | | #region MyRegion |
| | | |
| | | #endregion |
| | | |
| | | #region 各种删除 |
| | | /// <summary> |
| | | /// 删除pda |
| | | /// </summary> |
| | |
| | | { |
| | | delBind(e, gvMx3); |
| | | } |
| | | /// <summary> |
| | | /// 删除线体 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | private void repositoryItemButtonEdit6_ButtonClick(object sender, ButtonPressedEventArgs e) |
| | | { |
| | | delBind(e, gvMx4); |
| | | } |
| | | /// <summary> |
| | | /// 删除组织 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | private void repositoryItemButtonEdit7_ButtonClick(object sender, ButtonPressedEventArgs e) |
| | | { |
| | | delBind(e, gvMx5); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 删除各种绑定 |
| | | /// </summary> |
| | | /// <param name="e"></param> |
| | | /// <param name="gv"></param> |
| | | private void delBind(ButtonPressedEventArgs e, DevExpress.XtraGrid.Views.Grid.GridView gv) |
| | | { |
| | | var rowhandle = gv.FocusedRowHandle; |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | #endregion |
| | | |
| | | |
| | | } |
| | | } |