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);
         }
     }
 }
 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)
         {
         }
     }
 }
 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);
         }
     }
 }