//private BL.CompanyManager companyManager = new Book.BL.CompanyManager(); public ConditionFChooseForm(global::Helper.CompanyKind kind) { InitializeComponent(); this.kind = kind; switch (this.kind) { case global::Helper.CompanyKind.Supplier: this.nccCustomerStart.Choose = new Settings.BasicData.Supplier.ChooseSupplier(); this.nccCustomerEnd.Choose = new Settings.BasicData.Supplier.ChooseSupplier(); this.nccCustomerChuHuoStart.Enabled = false; this.nccCustomerChuHuoEnd.Enabled = false; IList <Model.SupplierCategory> categoryList = (new BL.SupplierCategoryManager()).Select(); foreach (Model.SupplierCategory supplierCategory in categoryList) { this.comboBoxSupplierCategory.Properties.Items.Add(supplierCategory.SupplierCategoryId, supplierCategory.SupplierCategoryName); } this.comboBoxSupplierCategory.Properties.ReadOnly = false; break; case global::Helper.CompanyKind.Customer: default: this.nccCustomerStart.Choose = new Settings.BasicData.Customs.ChooseCustoms(); this.nccCustomerEnd.Choose = new Settings.BasicData.Customs.ChooseCustoms(); this.nccCustomerChuHuoStart.Choose = new Settings.BasicData.Customs.ChooseCustoms(); this.nccCustomerChuHuoEnd.Choose = new Settings.BasicData.Customs.ChooseCustoms(); this.nccCustomerChuHuoStart.Enabled = true; this.nccCustomerChuHuoEnd.Enabled = true; break; } }
public ConditionBChooseForm(global::Helper.CompanyKind kind) { InitializeComponent(); this.newChooseCustomer.Choose = new Settings.BasicData.Customs.ChooseCustoms(); this.kind = kind; this.labelControl3.Text = kind == global::Helper.CompanyKind.Customer ? Properties.Resources.Customer : Properties.Resources.Supplier; }
public ConditionEChooseForm(global::Helper.CompanyKind kind) : this() { this.kind = kind; }
/// <summary> /// 无参构造 /// </summary> /// <param name="kind"></param> public ConditionIChooseForm(global::Helper.CompanyKind kind) { InitializeComponent(); this.kind = kind; }