コード例 #1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     using (var Fm = new STK_库存入库_Editor())
     {
         Fm.Editor_Add();
         if (Fm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             this.DataBinding_dbGridView(0);
         }
     }
 }
コード例 #2
0
 private void btn查看_Click(object sender, EventArgs e)
 {
     if (this.dbGridView.SelectedRows.Count == 0)
     {
         return;
     }
     //
     using (var Fm = new STK_库存入库_Editor())
     {
         Fm.Editor_See(this.dbGridView.SelectedRows[0].Cells["单据编码"].Value.ToString());
         if (Fm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
         }
     }
 }
コード例 #3
0
 private void btnMod_Click(object sender, EventArgs e)
 {
     if (this.dbGridView.SelectedRows.Count == 0)
     {
         return;
     }
     if (!String.IsNullOrWhiteSpace(this.dbGridView.SelectedRows[0].Cells["审核时间"].Value.ToString()))
     {
         AppServer.ShowMsg_Warn("该入库单已被审核,不能再修改了!");
         return;
     }
     //
     using (var Fm = new STK_库存入库_Editor())
     {
         Fm.Editor_Mod(this.dbGridView.SelectedRows[0].Cells["单据编码"].Value.ToString());
         if (Fm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             this.DataBinding_dbGridView(this.dbGridView.CurrentRow.Index);
         }
     }
 }