コード例 #1
0
ファイル: PopupStockMove.cs プロジェクト: 0000duck/MES-3
 private void grid_CellClick(object sender, GridCellClickEventArgs e)
 {
     if (e.GridCell.GridColumn == gcPartCode)
     {
         PopupStockChoice frm = new PopupStockChoice();
         frm.ShowDialog();
         if (frm.ChoicePartCode != "")
         {
             grow[gcPartCode].Value    = frm.ChoicePartCode;
             grow[gcBatch].Value       = frm.ChoicePartBatch;
             grow[gcFromLocCode].Value = frm.ChoiceSLoc;
         }
     }
 }
コード例 #2
0
ファイル: PopupMaterialOut.cs プロジェクト: 0000duck/MES-3
 private void grid_CellClick(object sender, GridCellClickEventArgs e)
 {
     if (e.GridCell.GridColumn == gcPartCode)
     {
         PopupStockChoice frm = new PopupStockChoice();
         frm.ShowDialog();
         if (frm.ChoicePartCode != "")
         {
             grow[gcPartCode].Value    = frm.ChoicePartCode;
             grow[gcBatch].Value       = frm.ChoicePartBatch;
             grow[gcFromLocCode].Value = frm.ChoiceSLoc;
             grow[gcUnitPrice].Value   = frm.ChoiceUnitPrice;
         }
         if (grow[gcUID].Value.ToString() == "0")
         {
             grow[gcTakeTime].Value = DateTime.Now;
         }
     }
 }