| | |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | |
| | | |
| | | namespace Gs.DevApp.DevFrm.Work |
| | | { |
| | | public partial class Frm_WorkTechnique : DevExpress.XtraEditors.XtraForm |
| | |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameterMx(gvMx1); |
| | | Gs.DevApp.ToolBox.UtilityHelper.SetGridViewParameter(gridView1, null, null, "", "", (value) => |
| | | { |
| | | |
| | | }); |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | |
| | | private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e) |
| | | { |
| | | toolBarMenu1.isSetBtn = false; |
| | | if (txt_fType.SelectedIndex <0) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("生产类型不能为空!"); |
| | | txt_fType.Focus(); |
| | | return; |
| | | } |
| | | //if (txt_fType.SelectedIndex <0) |
| | | //{ |
| | | // Gs.DevApp.ToolBox.MsgHelper.ShowError("生产类型不能为空!"); |
| | | // txt_fType.Focus(); |
| | | // return; |
| | | //} |
| | | if (txt_fJingDu.SelectedIndex < 0) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("管理精度不能为空!"); |
| | | txt_fJingDu.Focus(); return; |
| | | } |
| | | txt_fBegDate.DateTime = new DateTime(2025, 1, 1); |
| | | txt_fEndDate.DateTime = new DateTime(2099, 1, 1); |
| | | txt_fSumPeople.Text = "0"; |
| | | if (txt_fBegDate.Text.Length <= 0) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("生效日期不能为空!"); |
| | | txt_fBegDate.Focus(); return; |
| | | } |
| | | txt_fEndDate.DateTime= new DateTime(2099, 1, 1); |
| | | if (txt_fEndDate.Text.Length > 0 && txt_fBegDate.DateTime > txt_fEndDate.DateTime) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.ShowError("生效日期不能大于失效日期!"); |
| | |
| | | var _obj = new |
| | | { |
| | | guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), //主建 |
| | | fType = txt_fType.Text.Trim(), |
| | | // fType = txt_fType.Text.Trim(), |
| | | fType = "F-量产", |
| | | fBegDate = txt_fBegDate.Text.Trim(), |
| | | fEndDate = txt_fEndDate.Text.Trim(), |
| | | fJingDu = txt_fJingDu.Text.Trim(), |
| | |
| | | return; |
| | | } |
| | | getModel(rowGuid); |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | MsgHelper.ShowError("请先选择你要操作的行!"); |
| | | return; |
| | | } |
| | | if (!MsgHelper.AskQuestion("你选择了【" + rowName + "】,确定" + strMsg + "吗?")) |
| | | if (!MsgHelper.AskQuestion("你选择了【" + rowName + "】,该操作将会影响到【D:待开工】且【未通知备料】的工单,确定" + strMsg + "吗?")) |
| | | return; |
| | | var _obj = new |
| | | { |