示例#1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            frmProductWorkingDetail frm = new frmProductWorkingDetail();

            frm.StepID    = TextUtils.ToInt(grvData.GetFocusedRowCellValue(colStepID));
            frm.ProductID = ProductID;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                loadWorking();
            }
        }
示例#2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     try
     {
         int id = TextUtils.ToInt(grvDetail.GetFocusedRowCellValue(colWorkingID));
         if (id == 0)
         {
             return;
         }
         ProductWorkingModel     model = (ProductWorkingModel)ProductWorkingBO.Instance.FindByPK(id);
         frmProductWorkingDetail frm   = new frmProductWorkingDetail();
         frm.ProductWorking = model;
         frm.ProductID      = this.ProductID;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             loadWorking();
         }
     }
     catch (Exception ex)
     {
     }
 }