Esempio n. 1
0
 private void btnStockTakingEnd_Click(object sender, EventArgs e)
 {
     if (XtraMessageBox.Show("您确定要结束盘点吗?", "盘点提醒", MessageBoxButtons.OKCancel) == DialogResult.OK)
     {
         //    UserInfo.Instance.StoreName;
         if (masterID.HasValue)
         {
             var result = stock.EndStockTaking(new StockTakingAgrs()
             {
                 ID = masterID.Value
             });
             if (result)
             {
                 btnStockTakingEnd.Enabled   = false;
                 btnStockTakingStart.Enabled = true;
                 canEdit = false;
                 gridViewStockTaking.RefreshData();
                 // InitStockTaking();
                 // BindStockTaking();
                 // BindStockLookUp();
             }
         }
     }
 }