Esempio n. 1
0
        private void btnCreate_Click(object sender, EventArgs e)
        {
            if (listBillNO.Text.Trim() == "")
            {
                MsgBox.Warn("请选择一个差异调整单!");
                return;
            }
            int billNo = ConvertUtil.ToInt(listBillNO.Text);
            List <LocationEntity> locations = ListGetLocations(billNo);

            FrmLocationConfirm frmConfirm = new FrmLocationConfirm(locations, "复盘");

            frmConfirm.ShowDialog();
            frmConfirm.Dispose();
        }
Esempio n. 2
0
        private void DoRecount()
        {
            CountHeaderEntity header = SelectedCountHeader;

            if (header == null)
            {
                MsgBox.Warn("请选中要完成的单据。");
                return;
            }
            if (Convert.ToInt32(header.BillState) < Convert.ToInt32(BaseCodeConstant.COUNT_STATE_CLOSE))
            {
                MsgBox.Warn(string.Format("单据“{0}”还没盘点完成。", header.BillID));
                return;
            }
            List <LocationEntity> locations = ListGetLocations(header.BillID);

            FrmLocationConfirm frmConfirm = new FrmLocationConfirm(locations, "复盘");

            frmConfirm.ShowDialog();
            frmConfirm.Dispose();
        }
Esempio n. 3
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            List <LocationEntity> locations = GetCheckedLocations();

            if (locations == null || locations.Count == 0)
            {
                MsgBox.Warn("请选中要盘点的货位。");
                return;
            }
            // 判断当前选择的货位中是否存在进行中的货位
            if (locations.Exists(u => u.BillState != null))
            {
                MsgBox.Warn("<已创建盘点单> <正在盘点> <等待差异调整> 的货位不允许再建盘点单!");
                return;
            }
            using (FrmLocationConfirm frmConfirm = new FrmLocationConfirm(locations, txtRemark.Text.Trim()))
            {
                if (frmConfirm.ShowDialog() == DialogResult.OK)
                {
                    this.LoadLocations();
                }
            }
        }