| | |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx2); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx3); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMxL1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMxL2); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMxL3); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, "", "", (value) => |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0); |
| | |
| | | }); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetTabParameter(gridView1, xtraTabControl1, pageBar1, (value) => |
| | | { |
| | | |
| | | getModel(value); |
| | | |
| | | |
| | | }, (value) => |
| | | { |
| | | getPageList(this.pageBar1.CurrentPage); |
| | |
| | | releaseNosStr // s5 → @in6:releaseNo列表 |
| | | }; |
| | | |
| | | string paramContent = string.Join(",", reportParams); |
| | | /*string paramContent = string.Join(",", reportParams); |
| | | string rptParam = $"rpt_Arrival_One{{{paramContent}}}"; |
| | | |
| | | this.ucBtnPrintOne1.guidKey = mainGuid; |
| | |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError(errorMsg); |
| | | this.ucBtnPrintOne1.rptParameter = "return false"; |
| | | } |
| | | */ |
| | | |
| | | this.ucBtnPrintOne1.guidKey = mainGuid; |
| | | this.ucBtnPrintOne1.rptParameter = "rpt_Arrival_One{" |
| | | + string.Join(",", reportParams) // 拼接reportParams数组元素 |
| | | + "}"; |
| | | // 6. 清空控件 |
| | | txt_iCount_2.Text = ""; |
| | | txt_psnQty_2.Text = ""; |
| | |
| | | |
| | | // 检查数据加载后再设置颜色 |
| | | this.Load += (s, e) => { |
| | | |
| | | |
| | | System.Windows.Forms.Timer timer = new System.Windows.Forms.Timer(); |
| | | timer.Interval = 1000; // 1秒后执行,确保数据已加载 |
| | | timer.Tick += (sender, args) => { |
| | |
| | | } |
| | | private void getModel(string strGuid) |
| | | { |
| | | gcMx3.DataSource = null; |
| | | gcMx1.DataSource = null; |
| | | gcMx2.DataSource = null; |
| | | gcMx3.DataSource = null; |
| | | |
| | | bool isEdit = false; |
| | | if (toolBarMenu1.currentAction == "add") return; |
| | | if (toolBarMenu1.currentAction == "edit") isEdit = true; |
| | |
| | | { |
| | | string strJson = UtilityHelper.HttpPost("", _webServiceName + "GetModel", JsonConvert.SerializeObject(_obj)); |
| | | ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.ReturnToDynamic(strJson); |
| | | |
| | | if (_rtn.rtnCode > 0) |
| | | { |
| | | dynamic dy = _rtn.rtnData; |
| | |
| | | gvList.Add(gvMx2); |
| | | gvList.Add(gvMx3); |
| | | UtilityHelper.SetValueByObj(this.layoutMx1.Controls, dy, isEdit, gvList); |
| | | |
| | | |
| | | JArray array3 = new JArray(); |
| | | foreach (var a in dy["list3"]) |
| | | { |
| | | array3.Add(a); |
| | | } |
| | | DataTable dt3 = JsonConvert.DeserializeObject<DataTable>(array3.ToString()); |
| | | if (dt3.Rows.Count > 0) |
| | | { |
| | | gcMx3.BindingContext = new BindingContext(); |
| | | gcMx3.DataSource = dt3; |
| | | gcMx3.ForceInitialize(); |
| | | gvMx3.BestFitColumns(); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gvMx3); |
| | | } |
| | | else |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx3, gvMx3); |
| | | } |
| | | |
| | | |
| | | JArray array1 = new JArray(); |
| | | foreach (var a in dy["list1"]) |
| | | { |
| | |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx1, gvMx1); |
| | | } |
| | | |
| | | JArray array2 = new JArray(); |
| | | foreach (var a in dy["list2"]) |
| | | { |
| | |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx2, gvMx2); |
| | | } |
| | | JArray array3 = new JArray(); |
| | | foreach (var a in dy["list3"]) |
| | | { |
| | | array3.Add(a); |
| | | } |
| | | DataTable dt3 = JsonConvert.DeserializeObject<DataTable>(array3.ToString()); |
| | | if (dt3.Rows.Count > 0) |
| | | { |
| | | gcMx3.BindingContext = new BindingContext(); |
| | | gcMx3.DataSource = dt3; |
| | | gcMx3.ForceInitialize(); |
| | | gvMx3.BestFitColumns(); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridLayout(gvMx3); |
| | | } |
| | | else |
| | | { |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetDefaultTable(gcMx3, gvMx3); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | else |
| | | ToolBox.MsgHelper.Warning("提示:" + _rtn.rtnMsg); |
| | | } |