private void btnCheckOk_Click(object sender, System.EventArgs e) { if (this.txtCheckNo.Text.Trim() == "" || this.txtCheckNo.Text.Trim().Length != 8) { this.Popup("盘点序号不正确,请重试!"); return; } if (this.Datagrid2.Items.Count <= 0) { this.Popup("无任何盘点存货记录!"); return; } Entity.OperLog ol = new AMSApp.zhenghua.Entity.OperLog(); ol.cnvcOperType = "仓库库存清零盘点"; ol.cnvcOperID = this.oper.strLoginID; ol.cnvcDeptID = this.oper.strDeptID; StorageFacade sto = new StorageFacade(); int ret = sto.StorageCheckClearConfirm(ol, this.txtCheckNo.Text.Trim(), this.ddlWhouse.SelectedValue, this.ddlDept.SelectedValue, this.oper.strOperName); if (ret > 0) { this.Popup("仓库库存盘点确认更新库存成功!"); this.DBBind(); } else { this.Popup("仓库库存盘点确认更新库存失败!"); } }