| | |
| | | }, lbGuid); |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | txt_DAA001.EditValueChanged += txt_DAA001_EditValueChanged; |
| | | |
| | | //选择需要入库的明细 |
| | | btnSelect.Click += (s, e) => |
| | |
| | | private void ToolBarMenu1_btnDelClick1(object sender, EventArgs e) |
| | | { |
| | | string rowGuid = "", rowName = ""; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_Guid, gridView1, "errorNo"); |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_ErrorNo, gridView1, "errorNo"); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | | ToolBox.MsgHelper.Warning("请先选择你要操作的行!"); |
| | |
| | | var row = gridView2.GetDataRow(i); |
| | | if (row != null) |
| | | { |
| | | Guid? _guid = UtilityHelper.ToGuid(row["id"].ToString()); |
| | | if (string.IsNullOrEmpty(row["staffId"].ToString())) |
| | | { |
| | | MsgHelper.ShowError("员工不能为空!"); |
| | |
| | | |
| | | _obj.list.Add(new |
| | | { |
| | | Guid = _guid, |
| | | ID = Gs.DevApp.ToolBox.UtilityHelper.ToGuid(row["id"].ToString()), |
| | | Guid = "", |
| | | ID = "", |
| | | Staff_Id = row["staffId"].ToString(), |
| | | Staff_No = row["staffNo"].ToString(), |
| | | Staff_Name = row["staffName"].ToString(), |
| | |
| | | ; |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_Guid, gridView1, "errorNo"); |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_ErrorNo, gridView1, "errorNo"); |
| | | if (string.IsNullOrEmpty(rowGuid)) |
| | | { |
| | | MsgHelper.Warning("请先选择你要操作的行!"); |
| | |
| | | } |
| | | gridView2.RefreshData(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 工单下拉框选择事件 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | private void txt_DAA001_EditValueChanged(object sender, EventArgs e) |
| | | { |
| | | SearchLookUpEdit lookupEdit = sender as SearchLookUpEdit; |
| | | DataRowView selectedDataRow = (DataRowView)lookupEdit.GetSelectedDataRow(); |
| | | if (selectedDataRow != null) |
| | | { |
| | | txt_DAAType.Text = selectedDataRow["工单类型"].ToString(); |
| | | } |
| | | else |
| | | { |
| | | txt_DAAType.Text = ""; |
| | | } |
| | | } |
| | | } |
| | | } |