示例#1
0
 /// <summary>
 /// 新增数据功能处理
 /// </summary>
 protected override void SetInsertInit(bool isClear)
 {
     base.SetInsertInit(isClear);
     frmProdSchedulingManager frm = new frmProdSchedulingManager("新增排班设置", null);
     if (frm.ShowDialog() == DialogResult.OK)
     {
         loadData(this.txtDeptName.Text.Trim());
     }
     //XtraMsgBox.Show("SetInsertInit!", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning);
 }
示例#2
0
        public override void SetModifyInit()
        {
            base.SetModifyInit();
           
            if (this.gridView1.FocusedRowHandle >= 0)
            {
                DataRow dr = this.gridView1.GetFocusedDataRow();
                Int32 id = dr.Field<Int32>("ID");
                frmProdSchedulingManager frm = new frmProdSchedulingManager("修改排班设置", id);
                if (frm.ShowDialog() == DialogResult.OK)
                {
                    loadData(this.txtDeptName.Text.Trim());
                }
            }

        }