Example #1
0
        /// <summary>
        /// 设置修改时的默认值
        /// </summary>
        protected override void SetDefaultValue()
        {
            XVEquipmentCustInfo info = this.m_CurrentModel as XVEquipmentCustInfo;

            if (info.CustTypeId != string.Empty)
            {
                this.txtCustTypeId.Text          = info.CustTypeNameCN;
                this.txtCustTypeId.DisplayMember = info.CustTypeNameCN;
                this.txtCustTypeId.ValueMember   = info.CustTypeId;
            }
            this.txtCustName.Text    = info.CustName;
            this.txtCustNo.Text      = info.CustNo;
            this.txtCustAddress.Text = info.CustAddress;
            this.txtLinkPeople.Text  = info.LinkPeople;
            this.txtMobileNo.Text    = info.MobileNo;
            this.txtWorkTel.Text     = info.WorkTel;
            this.txtEmail.Text       = info.Email;
            this.txtWebSite.Text     = info.WebSite;
            this.txtCustDesc.Text    = info.CustDesc;
            this.txtRemark.Text      = info.Remark;

            this.txtInvoiceTitle.Text = info.InvoiceTitle;
            this.txtTaxNo.Text        = info.TaxNo;
            this.txtBank.Text         = info.BankName;
            this.txtAccountNo.Text    = info.BankAccountNo;
        }
Example #2
0
        /// <summary>
        /// 填充实体信息
        /// </summary>
        protected override void FillModelInfo()
        {
            XVEquipmentCustInfo info = this.m_CurrentModel as XVEquipmentCustInfo;

            //2016-11-21,mxj,add || chkcopy.Checked
            if (this.m_EditStatus == XEditStatus.AddNew || chkcopy.Checked)
            {
                info.RID = this.GetNewId();
                //2016-11-21,mxj,add
                info.ID = info.RID;
            }

            info.CustTypeId     = this.txtCustTypeId.ValueMember;
            info.CustTypeNameCN = this.txtCustTypeId.DisplayMember;
            info.CustName       = this.txtCustName.Text;
            info.CustNo         = this.txtCustNo.Text;
            info.CustAddress    = this.txtCustAddress.Text;
            info.LinkPeople     = this.txtLinkPeople.Text;
            info.MobileNo       = this.txtMobileNo.Text;
            info.WorkTel        = this.txtWorkTel.Text;
            info.Email          = this.txtEmail.Text;
            info.WebSite        = this.txtWebSite.Text;
            info.CustDesc       = this.txtCustDesc.Text;
            info.Remark         = this.txtRemark.Text;

            info.BankAccountNo = this.txtAccountNo.Text.Trim();
            info.BankName      = this.txtBank.Text.Trim();
            info.TaxNo         = this.txtTaxNo.Text.Trim();
            info.InvoiceTitle  = this.txtInvoiceTitle.Text.Trim();

            base.FillModelInfo();
        }
Example #3
0
        protected override void FillRowViewInfos(XModelBase model, System.Data.DataRow modelRow)
        {
            XVEquipmentCustInfo info = model as XVEquipmentCustInfo;

            info.CustTypeNameCN = XHelper.GetString(modelRow["CustTypeNameCN"]);
        }