| | |
| | | private void ToolBarMenu1_btnDelClick1(object sender, EventArgs e) |
| | | { |
| | | string rowGuid = "", rowName = ""; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_hNo, gridView1,"hNo"); |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_processNo, gridView1,"processNo"); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | | ToolBox.MsgHelper.Warning("请先选择你要操作的行!"); |
| | |
| | | private void ToolBarMenu1_btnEdtClick(object sender, EventArgs e) |
| | | { |
| | | string rowGuid = "", rowName = ""; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_hNo, gridView1,"hNo"); |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_processNo, gridView1,"processNo"); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | | ToolBox.MsgHelper.Warning("请先选择你要操作的行!"); |
| | |
| | | } |
| | | else |
| | | { |
| | | UtilityHelper.ChangeEnableByControl(this.splitMx1.Controls, true); |
| | | UtilityHelper.ChangeEnableByControl(this.layoutMx1.Controls, true); |
| | | } |
| | | } |
| | | /// <summary> |
| | |
| | | private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e) |
| | | { |
| | | toolBarMenu1.isSetBtn = false; |
| | | if (string.IsNullOrEmpty(txt_hNo.Text.Trim())) |
| | | if (string.IsNullOrEmpty(txt_processNo.Text.Trim())) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("编号不能为空!"); |
| | | txt_hNo.Focus(); |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("代码不能为空!"); |
| | | txt_processNo.Focus(); |
| | | return; |
| | | } |
| | | if (string.IsNullOrEmpty(txt_name.Text.Trim())) |
| | | if (string.IsNullOrEmpty(txt_processName.Text.Trim())) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("名称不能为空!"); |
| | | txt_name.Focus(); |
| | | txt_processName.Focus(); |
| | | return; |
| | | } |
| | | var _obj = new |
| | | { |
| | | guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //主建 |
| | | hNo = txt_hNo.Text.Trim(), |
| | | name = txt_name.Text.Trim(), |
| | | processNo = txt_processNo.Text.Trim(), |
| | | processName = txt_processName.Text.Trim(), |
| | | remark = txt_remark.Text.Trim(), |
| | | isBack = txt_isBack.Checked ? 1 : 0, |
| | | isStatus = txt_isStatus.Checked ? 1 : 0, |
| | |
| | | { |
| | | lbGuid.Text = _rtn.rtnData; |
| | | toolBarMenu1.isSetBtn = true; |
| | | UtilityHelper.ChangeEnableByControl(this.splitMx1.Controls, false); |
| | | UtilityHelper.ChangeEnableByControl(this.layoutMx1.Controls, false); |
| | | toolBarMenu1.currentAction = ""; |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | |
| | | private void getPageList(int curPage) |
| | | { |
| | | var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); |
| | | var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "a.hNo", |
| | | var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "a.processNo", |
| | | "asc", "", _sbSqlWhere.ToString()); |
| | | var json = JsonConvert.SerializeObject(pgq); |
| | | try |
| | |
| | | { |
| | | dynamic dy = _rtn.rtnData; |
| | | lbGuid.Text = strGuid; |
| | | UtilityHelper.SetValueByObj(this.splitMx1.Controls, dy, isEdit); |
| | | UtilityHelper.SetValueByObj(this.layoutMx1.Controls, dy, isEdit); |
| | | } |
| | | else |
| | | ToolBox.MsgHelper.Warning("提示:" + _rtn.rtnMsg); |