コード例 #1
0
 public PurchaseCtrl(PurchaseDocClientInfo info)
     : this()
 {
     this.Load -= PurchaseCtrl_Load;
     this.Load += PurchaseCtrl_Load2;
     _info      = info;
 }
コード例 #2
0
        /// <summary>
        /// 设置只读页面信息
        /// </summary>
        /// <param name="info"></param>
        private void SetReadOnlyPage(PurchaseDocClientInfo info)
        {
            if (_info == null)
            {
                ClearPage();
            }
            this.lblOrderNo.Text = info.PurchaseDocNo.ToString();
            UserInfoService _userInfoService = new UserInfoService();
            string          errText          = "";
            var             operatorName     = _userInfoService.GetUserNameById(out errText, info.OperatorId);

            this.lblOperator.Text = string.IsNullOrEmpty(operatorName) ? "" : operatorName;
            this.cmboxSupplier.Items.Add(info.SupplierName);
            this.cmboxSupplier.SelectedIndex = 0;
            this.cmboxWarehouse.Items.Add(info.WarehouseName);
            this.cmboxWarehouse.SelectedIndex = 0;

            this.dtPicker1.Value      = info.PurchaseTime;
            this.dtPicker1.Enabled    = false;
            this.btnAdd.Visible       = this.btnDelete.Visible = this.btnCancel.Visible = this.btnOk.Visible = false;
            this.txtboxRemark.Text    = info.Remark;
            this.txtboxRemark.Enabled = false;
            SetDetailInfo(info.PurchaseDocId);
        }
コード例 #3
0
ファイル: MainForm.cs プロジェクト: funtomi/SalesManagement
        private void PurchaseInfoQueryCtrl_ViewDetailsEvent(PurchaseDocClientInfo info)
        {
            PurchaseCtrl ctrl = new PurchaseCtrl(info);

            ChangeFormTo(ctrl);
        }