Example #1
0
 public void SetPara(SM_ITEMROUTING itemrouting)
 {
     itemrountingid = itemrouting.Id;
     itemtypename   = itemrouting.ITEMTYPENAME;
     gxname         = itemrouting.GXNAME;
     //this.TXT_ORDERID.SetValue(order.ORDERID);
     LoadGrid();
 }
Example #2
0
        private void WASTING()
        {
            SM_ITEMROUTING itemrouting = this.gGrid1.GetCurSelect <SM_ITEMROUTING>();

            if (itemrouting != null)
            {
                SM_ITEMROUTINGWASTINGEDIT oform = new SM_ITEMROUTINGWASTINGEDIT();
                oform.CurEditStatus = EditorStatus.Modify;
                oform.SetPara(itemrouting);
                oform.ShowDialog();
            }
        }
Example #3
0
 public override void AddRow()
 {
     try
     {
         if (i == 1)
         {
             int            sortid      = list.Count + 1;
             SM_ITEMROUTING processflow = gGrid1.AddRow <SM_ITEMROUTING>();
             processflow.SORTID       = sortid;
             processflow.ITEMTYPEID   = itemtypeid;
             processflow.ITEMTYPENAME = itemtypename;
             sortid++;
         }
         i = 1;
     }
     catch (Exception e) { MessageBox.Show(e.Message); }
 }