| | |
| | | this.txtName.Value = supplier.Name; |
| | | this.txtOfficersMobile.Value = supplier.OfficersMobile; |
| | | this.txtOfficersQQ.Value = supplier.OfficersQQ; |
| | | this.txtBank.Value = supplier.Bank; |
| | | this.txtAccountID.Value = supplier.AccountID; |
| | | this.txtPostcode.Value = supplier.Postcode; |
| | | this.txtQQ.Value = supplier.QQ; |
| | | this.txtRegisterCapital.Value = supplier.RegisterCapital.ToString2(); |
| | |
| | | supplier.Name = this.txtName.Value; |
| | | supplier.OfficersMobile = this.txtOfficersMobile.Value; |
| | | supplier.OfficersQQ = this.txtOfficersQQ.Value; |
| | | supplier.Bank = this.txtBank.Value; |
| | | supplier.AccountID = this.txtAccountID.Value; |
| | | supplier.Postcode = this.txtPostcode.Value; |
| | | supplier.QQ = this.txtQQ.Value; |
| | | supplier.RegisterCapital = (string.IsNullOrEmpty(this.txtRegisterCapital.Value) ? "0" : this.txtRegisterCapital.Value).ToInt32(); |
| | |
| | | supplier.LastUpdateTime = System.DateTime.Now; |
| | | if (_OA_SuppliersBLL.InsertModel(supplier)) |
| | | { |
| | | JavaScript.MessageBox("新增成功", this,true,true); |
| | | if (!string.IsNullOrEmpty(Request["flasss"])) |
| | | { |
| | | JavaScript.MessageBoxCloseAndRefreshparent("新增成功", this); |
| | | } |
| | | else |
| | | { |
| | | JavaScript.MessageBox("新增成功", this, true, true); |
| | | } |
| | | |
| | | } |
| | | else |
| | | JavaScript.MessageBox("添加失败", this); |