public IHttpActionResult Put(int id, SupplierName supplierName) { var context = new ClipperDBEntities(); SupplierName supplierNameStatus = context.SupplierNames.Find(id); if (supplierNameStatus == null) { return(NotFound()); } else if (supplierName == null) { ArgumentNullException argumentNullException = new ArgumentNullException(); return(InternalServerError(argumentNullException)); } else { SupplierName supplierNamesUpdate = context.SupplierNames .Where(e => e.SupplierID == supplierName.SupplierID).FirstOrDefault(); if (supplierNamesUpdate != null) { context.Entry(supplierNamesUpdate).CurrentValues.SetValues(supplierName); } } context.SaveChanges(); return(Ok(supplierName)); }
public IHttpActionResult Post(SupplierName supplierName) { SupplierName supplierNames = new SupplierName(); var context = new ClipperDBEntities(); context.SupplierNames.Add(supplierName); try { context.SaveChanges(); return(Ok()); } catch (System.Data.Entity.Validation.DbEntityValidationException dbEx) { Exception raise = dbEx; foreach (var validationErrors in dbEx.EntityValidationErrors) { foreach (var validationError in validationErrors.ValidationErrors) { string message = string.Format("{0}:{1}", validationErrors.Entry.Entity.ToString(), validationError.ErrorMessage); // raise a new exception nesting // the current instance as InnerException raise = new InvalidOperationException(message, raise); } } return(InternalServerError(dbEx)); } }
public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append(Key.ToString()).Append(" ").Append(SupplierName.ToString()).Append(" ").Append(SupplierAddress.ToString()).Append(" ").Append(SupplierPhoneNum.ToString()); return(sb.ToString()); }
/// <summary> /// Return a JSON representation of this object. /// </summary> /// <param name="CustomEnergyMixSerializer">A delegate to serialize custom hours JSON objects.</param> public JObject ToJSON(CustomJObjectSerializerDelegate <EnergyMix> CustomEnergyMixSerializer = null) { var JSON = JSONObject.Create( new JProperty("is_green_energy", IsGreenEnergy), EnergySources.SafeAny() ? new JProperty("energy_sources", new JArray(EnergySources.Select(energysource => energysource.ToJSON()))) : null, EnvironmentalImpacts.SafeAny() ? new JProperty("environ_impact", new JArray(EnvironmentalImpacts.Select(environmentalimpact => environmentalimpact.ToJSON()))) : null, SupplierName.IsNotNullOrEmpty() ? new JProperty("supplier_name", SupplierName) : null, EnergyProductName.IsNotNullOrEmpty() ? new JProperty("energy_product_name", EnergyProductName) : null ); return(CustomEnergyMixSerializer != null ? CustomEnergyMixSerializer(this, JSON) : JSON); }
public override int GetHashCode() { int hashCode = IdVer.GetHashCode() + IdSubVer.GetHashCode() + Timestamp.GetHashCode() + (IdSupplier == null ? 0 : IdSupplier.GetHashCode()) + (SupplierName == null ? 0 : SupplierName.GetHashCode()) + Active.GetHashCode() + (VATNum == null ? 0 : VATNum.GetHashCode()) + (ShippingAddress == null ? 0 : ShippingAddress.GetHashCode()) + (ShippingAddressZh == null ? 0 : ShippingAddressZh.GetHashCode()) + (BillingAddress == null ? 0 : BillingAddress.GetHashCode()) + (BillingAddressZh == null ? 0 : BillingAddressZh.GetHashCode()) + (ContactName == null ? 0 : ContactName.GetHashCode()) + (ContactNameZh == null ? 0 : ContactNameZh.GetHashCode()) + (ContactPhone == null ? 0 : ContactPhone.GetHashCode()) + (Comments == null ? 0 : Comments.GetHashCode()) + (IdIncoterm == null ? 0 : IdIncoterm.GetHashCode()) + (IdPaymentTerms == null ? 0 : IdPaymentTerms.GetHashCode()) + (IdDefaultCurrency == null ? 0 : IdDefaultCurrency.GetHashCode()) + (User == null ? 0: User.GetHashCode()); return(hashCode); }
protected override void SetPowerZone() { SupplierName.DataSource = BLL.C_Supplier.GetList(" IsDelete = 0 and Type=2 order by ID"); SupplierName.DataTextField = "Name"; SupplierName.DataValueField = "ID"; SupplierName.DataBind(); SupplierName.Items.Insert(0, "--请选择--"); }
public Result(int supplierId, SupplierName supplierName, PagedListMinimal <ProductViewModel> products, Dictionary <int, string> categoryOptions, bool productsAreFiltered) { Products = products; SupplierId = supplierId; SupplierName = supplierName.Value; ProductsAreFiltered = productsAreFiltered; CategoryOptions = categoryOptions; }
//public object HashTable { get; private set; } protected override void SetPowerZone() { //CostType.DataSource = BLL.C_CostType.GetList(" 1 = 1 order by ID"); //CostType.DataTextField = "Name"; //CostType.DataValueField = "ID"; //CostType.DataBind(); ComDate.Value = DateTime.Now.ToString(); txtGoodCount.Value = 0.ToString(); txtGoodPrice.Value = 0.ToString(); txtGood.DataSource = BLL.Goods.GetList(" IsDeleted = 0 order by GID"); txtGood.DataTextField = "GName"; txtGood.DataValueField = "GID"; txtGood.DataBind(); txtGood.Items.Insert(0, "--请选择--"); //Spare2.DataSource = BLL.C_Car.GetList(" IsDelete = 0 and CType='牵引车' order by ID"); //Spare2.DataTextField = "PZCode"; //Spare2.DataValueField = "PZCode"; //Spare2.DataBind(); //CSpare2.DataSource = BLL.C_Car.GetList(" IsDelete = 0 and CType='挂车' order by ID"); //CSpare2.DataTextField = "PZCode"; //CSpare2.DataValueField = "PZCode"; //CSpare2.DataBind(); SupplierName.DataSource = BLL.C_Supplier.GetList(" IsDelete = 0 and Type=1 order by ID"); SupplierName.DataTextField = "Name"; SupplierName.DataValueField = "ID"; SupplierName.DataBind(); SupplierName.Items.Insert(0, "--请选择--"); SupplierName2.DataSource = BLL.C_Supplier.GetList(" IsDelete = 0 and Type=2 order by ID"); SupplierName2.DataTextField = "Name"; SupplierName2.DataValueField = "ID"; SupplierName2.DataBind(); SupplierName2.Items.Insert(0, "--请选择--"); SupplierName3.DataSource = BLL.C_Supplier.GetList(" IsDelete = 0 order by ID"); SupplierName3.DataTextField = "Name"; SupplierName3.DataValueField = "ID"; SupplierName3.DataBind(); SupplierName3.Items.Insert(0, "--请选择--"); Name.Value = DateTime.Now.ToString("yyyyMMddHHmmssfff"); if (!string.IsNullOrEmpty(Request.QueryString["oid"])) { ocode.Value = Request.QueryString["oid"]; oid.Value = Request.QueryString["oid"]; } else { } if (!string.IsNullOrEmpty(Request.QueryString["id"])) { Name.Value = BLL.C_CarTast.GetModel(Convert.ToInt32(Request.QueryString["id"])).Name; } //ocode.Disabled = true; }
public bool isValid() { bool RValue = true; if (toList.Where(x => x.SupplierName.ToLower() == SupplierName.ToLower() && x.Id != Id).Count() > 0) { RValue = false; } return(RValue); }
public override int GetHashCode() { unchecked { int result = ProductId; result = (result * 397) ^ (ProductName != null ? ProductName.GetHashCode() : 0); result = (result * 397) ^ (SupplierName != null ? SupplierName.GetHashCode() : 0); result = (result * 397) ^ Cost.GetHashCode(); return(result); } }
//create new supplier public void NewSupplierCreateApplication() { Pages.Home_Page.OpenEntityDropdown.ClickOn(); Pages.Home_Page.CreateNewSupplier.ClickWait(); SupplierName.SendKeys("1"); SupplierSave.ClickOn(); softAsserts.VerifyElementIsPresent(supplierNameValidate); SupplierName.EnterClearText(Constant.supplierName); SupplierSave.ClickOn(); SupplierContactTab.ClickOn(); softAsserts.VerifyElementIsPresent(CreateSupplierContact); }
private void CheckSupplierName() { if (SupplierName.Trim().Length > 0 && _lstActiveSuppliers.Where(o => o.SupplierName.Equals(SupplierName, StringComparison.OrdinalIgnoreCase)).FirstOrDefault() == null) { SupplierNameCheckingStatus = 1; } else { SupplierNameCheckingStatus = -1; } Invalidate("SupplierNameCheckingStatus"); }
public Boolean update() { string qryStringMember; qryStringMember = "UPDATE tbl_supplier set " + "supplier_name=@supplier_name, " + "representative=@representative, " + "contact=@contact, email=@email, " + "address=@address " + "WHERE supplier_id=@supplier_id"; try { Connect.CnSql = new MySqlConnection(Connect.ConnStr); Connect.CnSql = new MySqlConnection(Connect.ConnStr); Connect.CnSql.Open(); Connect.CmSql = new MySqlCommand(qryStringMember, Connect.CnSql); Connect.CmSql.Parameters.AddWithValue("@supplier_name", SupplierName.Trim()); Connect.CmSql.Parameters.AddWithValue("@representative", Representative); Connect.CmSql.Parameters.AddWithValue("@contact", ContactNo); Connect.CmSql.Parameters.AddWithValue("@email", Email); Connect.CmSql.Parameters.AddWithValue("@address", Address); Connect.CmSql.Parameters.AddWithValue("@supplier_id", SupplierId); Trans = Connect.CnSql.BeginTransaction(); Connect.CmSql.Transaction = Trans; Connect.CmSql.ExecuteNonQuery(); Trans.Commit(); return(true); } catch (MySqlException e) { XtraMessageBox.Show(e.Message, "SQL Error", MessageBoxButtons.OK, MessageBoxIcon.Warning); Trans.Rollback(); } catch (Exception ex) { XtraMessageBox.Show(ex.Message, "General Error", MessageBoxButtons.OK, MessageBoxIcon.Warning); Trans.Rollback(); } finally { Connect.CnSql.Close(); Connect.CnSql.Dispose(); Connect.CmSql.Dispose(); Connect.CmSql = null; Connect.DrSql = null; } return(false); }
public IHttpActionResult Delete(int id) { var context = new ClipperDBEntities(); SupplierName supplierName = context.SupplierNames.Find(id); if (supplierName == null) { return(NotFound()); } else { context.SupplierNames.Remove(supplierName); context.SaveChanges(); return(Ok(supplierName)); } }
public IHttpActionResult Get(int id) { var context = new ClipperDBEntities(); SupplierName supplierName = context.SupplierNames.Find(id); if (supplierName == null) { return(NotFound()); } else { context.Configuration.ProxyCreationEnabled = false; var supplierNamesFound = context.SupplierNames.First(e => e.SupplierID == id); return(Ok(supplierNamesFound)); } }
public Boolean add() { string qryStringMember; qryStringMember = "Insert into tbl_supplier (supplier_name, representative, contact, email, address, date_added) VALUES (@supplier_name, @representative, @contact, @email, @address, NOW())"; try { Connect.CnSql = new MySqlConnection(Connect.ConnStr); Connect.CnSql.Open(); Connect.CmSql = new MySqlCommand(qryStringMember, Connect.CnSql); Connect.CmSql.Parameters.AddWithValue("@supplier_name", SupplierName.Trim()); Connect.CmSql.Parameters.AddWithValue("@representative", Representative.Trim()); Connect.CmSql.Parameters.AddWithValue("@contact", ContactNo.Trim()); Connect.CmSql.Parameters.AddWithValue("@email", Email.Trim()); Connect.CmSql.Parameters.AddWithValue("@address", Address.Trim()); Trans = Connect.CnSql.BeginTransaction(); Connect.CmSql.Transaction = Trans; Connect.CmSql.ExecuteNonQuery(); Trans.Commit(); return(true); } catch (MySqlException e) { XtraMessageBox.Show(e.Message, "SQL Error", MessageBoxButtons.OK, MessageBoxIcon.Warning); Trans.Rollback(); } catch (Exception ex) { XtraMessageBox.Show(ex.Message, "General Error", MessageBoxButtons.OK, MessageBoxIcon.Warning); Trans.Rollback(); } finally { Connect.CnSql.Close(); Connect.CnSql.Dispose(); Connect.CmSql.Dispose(); Connect.CmSql = null; Connect.DrSql = null; } return(false); }
protected override void SetPowerZone() { //CostType.DataSource = BLL.C_CostType.GetList(" 1 = 1 order by ID"); //CostType.DataTextField = "Name"; //CostType.DataValueField = "ID"; //CostType.DataBind(); txtGood.DataSource = BLL.Goods.GetList(" IsDeleted = 0 order by GID"); txtGood.DataTextField = "GName"; txtGood.DataValueField = "GID"; txtGood.DataBind(); Spare2.DataSource = BLL.C_Car.GetList(" IsDelete = 0 and CType='牵引车' order by ID"); Spare2.DataTextField = "PZCode"; Spare2.DataValueField = "PZCode"; Spare2.DataBind(); CSpare2.DataSource = BLL.C_Car.GetList(" IsDelete = 0 and CType='挂车' order by ID"); CSpare2.DataTextField = "PZCode"; CSpare2.DataValueField = "PZCode"; CSpare2.DataBind(); SupplierName.DataSource = BLL.C_Supplier.GetList(" IsDelete = 0 and Type=1 order by ID"); SupplierName.DataTextField = "Name"; SupplierName.DataValueField = "ID"; SupplierName.DataBind(); SupplierName.Items.Insert(0, "--请选择--"); SupplierName2.DataSource = BLL.C_Supplier.GetList(" IsDelete = 0 and Type=2 order by ID"); SupplierName2.DataTextField = "Name"; SupplierName2.DataValueField = "ID"; SupplierName2.DataBind(); SupplierName2.Items.Insert(0, "--请选择--"); SupplierName3.DataSource = BLL.C_Supplier.GetList(" IsDelete = 0 order by ID"); SupplierName3.DataTextField = "Name"; SupplierName3.DataValueField = "ID"; SupplierName3.DataBind(); SupplierName3.Items.Insert(0, "--请选择--"); CarSJ1.DataSource = BLL.Member.ManageMember.GetMemberEntityList(" RoleCode='SiJi' AND FMID='1' AND IsClock=0 AND IsClose=0 order by ID"); CarSJ1.DataTextField = "mname"; CarSJ1.DataValueField = "MID"; CarSJ1.DataBind(); //CarSJ1.Items.Insert(0, "--请选择--"); CarSJ2.DataSource = BLL.Member.ManageMember.GetMemberEntityList(" RoleCode='SiJi' AND FMID IN('2','3') AND IsClock=0 AND IsClose=0 order by ID"); CarSJ2.DataTextField = "mname"; CarSJ2.DataValueField = "MID"; CarSJ2.DataBind(); //CarSJ2.Items.Insert(0, "--请选择--"); binddata(Request.QueryString["id"]); if (!string.IsNullOrEmpty(Request.QueryString["oid"])) { ocode.Value = Request.QueryString["oid"]; oid.Value = Request.QueryString["oid"]; } else { } //ocode.Disabled = true; }
public CreateCommand(SupplierName name) { Name = name ?? throw new ArgumentNullException(nameof(name)); }
protected override void SetPowerZone() { tcode = Request.QueryString["tcode"]; CTModel = BLL.C_CarTast.GetModelname(tcode); SuppModel = BLL.C_Supplier.GetModel(Convert.ToInt32(CTModel.SupplierName)); if (!string.IsNullOrEmpty(CTModel.OCode)) { OdModel = BLL.OrderDetail.GetList(" ordercode='" + CTModel.OCode + "'; ").FirstOrDefault(); Good = BLL.Goods.GetModel(OdModel.GId); } txtGood.DataSource = BLL.Goods.GetList(" IsDeleted = 0 order by GID"); txtGood.DataTextField = "GName"; txtGood.DataValueField = "GID"; txtGood.DataBind(); txtGood.Items.Insert(0, "--请选择--"); SupplierName.DataSource = BLL.C_Supplier.GetList(" IsDelete = 0 and (Spare3 is null or Spare3='') and Type=1 order by ID"); SupplierName.DataTextField = "Name"; SupplierName.DataValueField = "ID"; SupplierName.DataBind(); SupplierName.Items.Insert(0, "--请选择--"); SupplierName2.DataSource = BLL.C_Supplier.GetList(" IsDelete = 0 and (Spare3 is null or Spare3='') and Type=2 order by ID"); SupplierName2.DataTextField = "Name"; SupplierName2.DataValueField = "ID"; SupplierName2.DataBind(); SupplierName2.Items.Insert(0, "--请选择--"); SupplierName3.DataSource = BLL.C_Supplier.GetList(" IsDelete = 0 and (Spare3 is null or Spare3='') order by ID"); SupplierName3.DataTextField = "Name"; SupplierName3.DataValueField = "ID"; SupplierName3.DataBind(); SupplierName3.Items.Insert(0, "--请选择--"); Name.Value = DateTime.Now.ToString("yyyyMMddHHmmssfff"); if (!string.IsNullOrEmpty(Request.QueryString["oid"])) { ocode.Value = Request.QueryString["oid"]; oid.Value = Request.QueryString["oid"]; } else { } if (!string.IsNullOrEmpty(Request.QueryString["id"])) { Model.C_CarTast ct = BLL.C_CarTast.GetModel(Convert.ToInt32(Request.QueryString["id"])); Name.Value = ct.Name; sid.Value = ct.SupplierName; if (ct.TType == 1) { SupplierName.Value = ct.SupplierName; } else if (ct.TType == 2) { SupplierName2.Value = ct.SupplierName; } else { SupplierName3.Value = ct.SupplierName; } SupplierAddress.Value = ct.SupplierAddress; Model.OrderDetail od = BLL.OrderDetail.GetModelCode(ct.OCode); if (od != null) { txtGood.Value = od.GId.ToString(); txtGoodCount.Value = od.GCount.ToString(); txtGoodPrice.Value = od.BuyPrice.ToString(); } } }
public EditCommand(int supplierId, SupplierName name) { SupplierId = supplierId; Name = name; }
protected void Page_Load(object sender, EventArgs e) { SupplierName.Focus(); }
protected override void SetPowerZone() { txtGood.DataSource = BLL.Goods.GetList(" IsDeleted = 0 order by GID"); txtGood.DataTextField = "GName"; txtGood.DataValueField = "GID"; txtGood.DataBind(); txtGood.Items.Insert(0, "--请选择--"); SupplierName.DataSource = BLL.C_Supplier.GetList(" IsDelete = 0 and (Spare3 is null or Spare3='') and Type=1 order by ID"); SupplierName.DataTextField = "Name"; SupplierName.DataValueField = "ID"; SupplierName.DataBind(); SupplierName.Items.Insert(0, "--请选择--"); SupplierName2.DataSource = BLL.C_Supplier.GetList(" IsDelete = 0 and (Spare3 is null or Spare3='') and Type=2 order by ID"); SupplierName2.DataTextField = "Name"; SupplierName2.DataValueField = "ID"; SupplierName2.DataBind(); SupplierName2.Items.Insert(0, "--请选择--"); SupplierName3.DataSource = BLL.C_Supplier.GetList(" IsDelete = 0 and (Spare3 is null or Spare3='') order by ID"); SupplierName3.DataTextField = "Name"; SupplierName3.DataValueField = "ID"; SupplierName3.DataBind(); SupplierName3.Items.Insert(0, "--请选择--"); Name.Value = DateTime.Now.ToString("yyyyMMddHHmmssfff"); if (!string.IsNullOrEmpty(Request.QueryString["oid"])) { ocode.Value = Request.QueryString["oid"]; oid.Value = Request.QueryString["oid"]; } else { } if (!string.IsNullOrEmpty(Request.QueryString["id"])) { Model.C_CarTast ct = BLL.C_CarTast.GetModel(Convert.ToInt32(Request.QueryString["id"])); Name.Value = ct.Name; sid.Value = ct.SupplierName; if (ct.TType == 1) { SupplierName.Value = ct.SupplierName; } else if (ct.TType == 2) { SupplierName2.Value = ct.SupplierName; } else { SupplierName3.Value = ct.SupplierName; } SupplierAddress.Value = ct.SupplierAddress; Model.OrderDetail od = BLL.OrderDetail.GetModelCode(ct.OCode); if (od != null) { txtGood.Value = od.GId.ToString(); txtGoodCount.Value = od.GCount.ToString(); txtGoodPrice.Value = od.BuyPrice.ToString(); } //装车信息 if (ct.TType != 1) { xcView.Visible = false; tcode = ct.TCode; CTModel = BLL.C_CarTast.GetModelname(tcode); if (CTModel != null) { SuppModel = BLL.C_Supplier.GetModel(Convert.ToInt32(CTModel.SupplierName)); if (!string.IsNullOrEmpty(CTModel.OCode)) { OdModel = BLL.OrderDetail.GetList(" ordercode='" + CTModel.OCode + "'; ").FirstOrDefault(); Good = BLL.Goods.GetModel(OdModel.GId); } } } else { zcView.Visible = false; List <Model.C_CarTast> carList = BLL.C_CarTast.GetModelList(" TCode='" + ct.Name + "' "); foreach (var item in carList) { CarTast cModel = new CarTast(); cModel.Code = item.Name; cModel.Supp = BLL.C_Supplier.GetModel(Convert.ToInt32(item.SupplierName)).Name; Model.OrderDetail XCod = BLL.OrderDetail.GetModelCode(item.OCode); if (XCod != null) { cModel.Count = XCod.GCount; cModel.ReCount = XCod.ReCount; cModel.GoodName = BLL.Goods.GetModel(Convert.ToInt32(XCod.GId)).GName; } cModel.CreateTime = item.CreateDate; XCList.Add(cModel); } } } //ocode.Disabled = true; }
public SupplierBuilder Name(string name) { _name = new SupplierName(name); return(this); }
protected override void SetPowerZone() { //CostType.DataSource = BLL.C_CostType.GetList(" 1 = 1 order by ID"); //CostType.DataTextField = "Name"; //CostType.DataValueField = "ID"; //CostType.DataBind(); txtGood.DataSource = BLL.Goods.GetList(" IsDeleted = 0 order by GID"); txtGood.DataTextField = "GName"; txtGood.DataValueField = "GID"; txtGood.DataBind(); txtGood.Items.Insert(0, "--请选择--"); // Spare2.DataSource = BLL.C_Car.GetList(" IsDelete = 0 and CType='牵引车' order by ID"); //Spare2.DataTextField = "PZCode"; //Spare2.DataValueField = "PZCode"; //Spare2.DataBind(); //CSpare2.DataSource = BLL.C_Car.GetList(" IsDelete = 0 and CType='挂车' order by ID"); //CSpare2.DataTextField = "PZCode"; //CSpare2.DataValueField = "PZCode"; //CSpare2.DataBind(); SupplierName.DataSource = BLL.C_Supplier.GetList(" IsDelete = 0 and (Spare3 is null or Spare3='') and Type=1 order by ID"); SupplierName.DataTextField = "Name"; SupplierName.DataValueField = "ID"; SupplierName.DataBind(); SupplierName.Items.Insert(0, "--请选择--"); SupplierName2.DataSource = BLL.C_Supplier.GetList(" IsDelete = 0 and (Spare3 is null or Spare3='') and Type=2 order by ID"); SupplierName2.DataTextField = "Name"; SupplierName2.DataValueField = "ID"; SupplierName2.DataBind(); SupplierName2.Items.Insert(0, "--请选择--"); SupplierName3.DataSource = BLL.C_Supplier.GetList(" IsDelete = 0 and (Spare3 is null or Spare3='') order by ID"); SupplierName3.DataTextField = "Name"; SupplierName3.DataValueField = "ID"; SupplierName3.DataBind(); SupplierName3.Items.Insert(0, "--请选择--"); Name.Value = DateTime.Now.ToString("yyyyMMddHHmmssfff"); if (!string.IsNullOrEmpty(Request.QueryString["oid"])) { ocode.Value = Request.QueryString["oid"]; oid.Value = Request.QueryString["oid"]; } else { } if (!string.IsNullOrEmpty(Request.QueryString["id"])) { Model.C_CarTast ct = BLL.C_CarTast.GetModel(Convert.ToInt32(Request.QueryString["id"])); Name.Value = ct.Name; sid.Value = ct.SupplierName; if (ct.TType == 1) { SupplierName.Value = ct.SupplierName; } else if (ct.TType == 2) { SupplierName2.Value = ct.SupplierName; } else { SupplierName3.Value = ct.SupplierName; } SupplierAddress.Value = ct.SupplierAddress; Model.OrderDetail od = BLL.OrderDetail.GetModelCode(ct.OCode); if (od != null) { txtGood.Value = od.GId.ToString(); txtGoodCount.Value = od.GCount.ToString(); txtGoodPrice.Value = od.BuyPrice.ToString(); } } //ocode.Disabled = true; }
public Supplier(SupplierName name) { Name = name ?? throw new ArgumentNullException(nameof(name)); }