// DataTable dtprice = new DataTable(); public Patient() { InitializeComponent(); //ChekPrice(); ScreanPriv(); ScreanPrivBond(); //لإظهار رقم المريض ورقم الملف بدون تكرار وبشكل متتابع BL.Cls_Git_Max_id_For_Tables gitmax = new BL.Cls_Git_Max_id_For_Tables(); int Id, No; Id = gitmax.Git_Max_id() + 1; No = gitmax.Git_Max_no() + 1; //بجلب ارقام المريض مع مرقم ملفه تلقائياً txtIdPatient.Text = Id.ToString(); txtNoFile.Text = No.ToString(); //لجلب اسماء العمليات surgeryName(cmTypeBond); BondType(cmBefor); dt = p.SelectAllPatient(); dataGridView1.DataSource = dt; //لجلب اسماء المرضى الى الكبوبوكس sub(txtNamePatient); }
public virtual void CopyValueToCurrentValueColumn() { PartnershipHelper partnershipHelper = ClassFactory.Get <PartnershipHelper>(new ConstructorArgument("userConnection", UserConnection)); Guid parameterValueTypeId = Entity.GetTypedColumnValue <Guid>("ParameterValueTypeId"); string columnValueName = partnershipHelper.GetColumnValueNameByType(parameterValueTypeId); switch (columnValueName) { case "BooleanValue": var boolValue = Entity.GetTypedColumnValue <Boolean>(columnValueName); Entity.SetColumnValue("CurrentValue", boolValue ? Yes.ToString() : No.ToString()); break; case "ListItemValue": Guid listItemValueId = Entity.GetTypedColumnValue <Guid>("ListItemValueId"); Guid guidValue = Entity.GetTypedColumnValue <Guid>("GuidValue"); Guid categoryId = Entity.GetTypedColumnValue <Guid>("PartnerParamCategoryId"); Entity.SetColumnValue("CurrentValue", guidValue.Equals(Guid.Empty) ? listItemValueId.ToString() : getLookupDisplayValueByCategory(categoryId, guidValue) ); break; default: Entity.SetColumnValue("CurrentValue", Entity.GetTypedColumnValue <string>(columnValueName)); break; } }
public override string ToString() { if (Kwang) { return($"{No}광"); } else { return(No.ToString()); } }
public void gitmax() { BL.Cls_Git_Max_id_For_Tables gitmax = new BL.Cls_Git_Max_id_For_Tables(); if (string.IsNullOrEmpty(txtIdPatient.Text) || string.IsNullOrEmpty(txtNoFile.Text)) { int Id, No; Id = gitmax.Git_Max_id() + 1; No = gitmax.Git_Max_no() + 1; txtIdPatient.Text = Id.ToString(); txtNoFile.Text = No.ToString(); } }
protected virtual void MajRef(String reference = null) { if (String.IsNullOrWhiteSpace(reference)) { reference = Prefix_Utilisateur + No.ToString(); } if (reference != _Ref) { Ref = reference; } }
private void button5_Click(object sender, EventArgs e) { BL.Cls_Git_Max_id_For_Tables gitmax = new BL.Cls_Git_Max_id_For_Tables(); int Id, No; Id = gitmax.Git_Max_id() + 1; No = gitmax.Git_Max_no() + 1; txtIdPatient.Text = Id.ToString(); txtNoFile.Text = No.ToString(); }
public override string ToString() { string no = No < 10 ? "0" + No : No.ToString(); string deposit = Deposit ? "Depozitolu" : "İadesiz"; string violEki = ""; int option = ViolCapacity % 10 == 0 ? ViolCapacity : ViolCapacity % 10; switch (option) { case 1: case 2: case 5: case 7: case 8: case 20: case 50: case 70: case 80: violEki = "'li"; break; case 3: case 4: case 100: violEki = "'lü"; break; case 6: case 40: case 60: case 90: violEki = "'lı"; break; case 9: case 10: case 30: violEki = "'lu"; break; default: break; } return(string.Format("{0} {1} {2} ({3}{4} Viyol, {5}) {6} {7}", no, Brand, Title, ViolCapacity, violEki, deposit, Gsm, Unit)); }
public override string ToString() { No atual = primeiro; String retorno = ""; int elementos = 0; retorno += "("; while (atual != null) { elementos++; retorno += "[" + atual.ToString() + "]"; atual = atual.anterior; } retorno += ")"; return("Nos: " + elementos + ", Valores:" + retorno); }
private void FrmEquipmentInfo_Load(object sender, EventArgs e) { txtNo.Text = No.ToString(); txtName.Text = EName; if (this.Text.Trim().Equals("更新沥青罐参数")) { Set_yeweino(); setPKind(); setMKind(); SetData(); } else { setMKind(); cbxKind.Text = ""; cbxKind.SelectedIndex = -1; Set_yeweino(); } }
public override string ToString() { //把名片拼接成圆角名片的形式 var namePostion = Name + " " + Position; //横线20个长度 var line = "————————————————————"; Console.WriteLine(GetLength(line)); var content = $@"╭NO:{No.ToString("0000")}————————————————╮ ∣{Company.PadRight(GetLength(line) - (GetLength(Company) - Company.Length))}∣ ∣{(namePostion).PadRight(GetLength(line) - (GetLength(namePostion) - namePostion.Length))}∣ ∣{(Address).PadRight(GetLength(line) - (GetLength(Address) - Address.Length))}∣ "; foreach (var contact in Contacts) { var contactStr = $"{contact.ContactType}:{contact.ContactNo}"; content += $@"∣{contactStr.PadRight(GetLength(line) - (GetLength(contactStr) - contactStr.Length))}∣ "; } content += $"╰{ line}╯"; return(content); }
public override bool FillStringValue() { var attributeTypeId = string.Empty; var attributeValue = string.Empty; if (Entity.SiteEventAttributeId == Guid.Empty) { return(true); } ; var esqResult = new EntitySchemaQuery(UserConnection.EntitySchemaManager, "SiteEventAttribute"); esqResult.AddColumn("Type"); var attributeEntity = esqResult.GetEntity(UserConnection, Entity.SiteEventAttributeId); attributeTypeId = attributeEntity.GetTypedColumnValue <string>("TypeId"); // if not string value if (attributeTypeId != "e9da1be2-b0b9-478f-8290-b84a0091ec81") { Entity.SetColumnValue("StringValue", string.Empty); } ; switch (attributeTypeId) { // string type case ("e9da1be2-b0b9-478f-8290-b84a0091ec81"): Entity.SetColumnValue("IntValue", 0); Entity.SetColumnValue("FloatValue", 0.0); Entity.SetColumnValue("BooleanValue", false); Entity.SetColumnValue("ListItemValueId", null); Entity.SetColumnValue("ProductValueId", null); Entity.SetColumnValue("ProductTypeValueId", null); Entity.SetColumnValue("ProductCategoryValueId", null); Entity.SetColumnValue("ProductTradeMarkValueId", null); return(true); // int type case ("30dc6786-9179-4e6c-9e09-3c00b98bd3ef"): attributeValue = Entity.GetTypedColumnValue <string>("IntValue"); Entity.SetColumnValue("FloatValue", 0.0); Entity.SetColumnValue("BooleanValue", false); Entity.SetColumnValue("ListItemValueId", null); Entity.SetColumnValue("ProductValueId", null); Entity.SetColumnValue("ProductTypeValueId", null); Entity.SetColumnValue("ProductCategoryValueId", null); Entity.SetColumnValue("ProductTradeMarkValueId", null); break; // float type case ("21b7b386-0ce4-48d3-9b4d-6616407dedb0"): attributeValue = Entity.GetTypedColumnValue <string>("FloatValue"); Entity.SetColumnValue("IntValue", 0); Entity.SetColumnValue("BooleanValue", false); Entity.SetColumnValue("ListItemValueId", null); Entity.SetColumnValue("ProductValueId", null); Entity.SetColumnValue("ProductTypeValueId", null); Entity.SetColumnValue("ProductCategoryValueId", null); Entity.SetColumnValue("ProductTradeMarkValueId", null); break; // boolean type case ("5762dce0-54fd-4da5-859d-323003b8a9e2"): if (Entity.GetTypedColumnValue <bool>("BooleanValue")) { attributeValue = Yes.ToString(); } else { attributeValue = No.ToString(); } Entity.SetColumnValue("FloatValue", 0.0); Entity.SetColumnValue("IntValue", 0); Entity.SetColumnValue("ListItemValueId", null); Entity.SetColumnValue("ProductValueId", null); Entity.SetColumnValue("ProductTypeValueId", null); Entity.SetColumnValue("ProductCategoryValueId", null); Entity.SetColumnValue("ProductTradeMarkValueId", null); break; // list item value case ("23332960-c76a-4c53-a4e6-f0447b8d0018"): Entity.SetColumnValue("IntValue", 0); Entity.SetColumnValue("FloatValue", 0.0); Entity.SetColumnValue("BooleanValue", false); Entity.SetColumnValue("ProductValueId", null); Entity.SetColumnValue("ProductTypeValueId", null); Entity.SetColumnValue("ProductCategoryValueId", null); Entity.SetColumnValue("ProductTradeMarkValueId", null); attributeValue = GetColumnDisplayValue("SiteEventAttrListItem", Entity.ListItemValueId); break; // product item value case ("28979594-4b11-4bd8-86d2-f2252f508edd"): Entity.SetColumnValue("BooleanValue", false); Entity.SetColumnValue("FloatValue", 0.0); Entity.SetColumnValue("IntValue", 0); Entity.SetColumnValue("ListItemValueId", null); Entity.SetColumnValue("ProductTypeValueId", null); Entity.SetColumnValue("ProductCategoryValueId", null); Entity.SetColumnValue("ProductTradeMarkValueId", null); attributeValue = GetColumnDisplayValue("Product", Entity.ProductValueId); break; // product trademark item value case ("5262af16-0914-4f73-a1e9-20cbebd766f9"): Entity.SetColumnValue("BooleanValue", false); Entity.SetColumnValue("FloatValue", 0.0); Entity.SetColumnValue("IntValue", 0); Entity.SetColumnValue("ListItemValueId", null); Entity.SetColumnValue("ProductTypeValueId", null); Entity.SetColumnValue("ProductTradeMarkValueId", null); attributeValue = GetColumnDisplayValue("ProductCategory", Entity.ProductCategoryValueId); break; // product type item value case ("e29b09bb-0f52-4eb4-847d-3b6235f5424a"): Entity.SetColumnValue("BooleanValue", false); Entity.SetColumnValue("FloatValue", 0.0); Entity.SetColumnValue("IntValue", 0); Entity.SetColumnValue("ListItemValueId", null); Entity.SetColumnValue("ProductCategoryValueId", null); Entity.SetColumnValue("ProductTradeMarkValueId", null); attributeValue = GetColumnDisplayValue("ProductType", Entity.ProductTypeValueId); break; // product trademark item value case ("71fae7e0-2a9c-4aea-9a87-e23eee66b01d"): Entity.SetColumnValue("BooleanValue", false); Entity.SetColumnValue("FloatValue", 0.0); Entity.SetColumnValue("IntValue", 0); Entity.SetColumnValue("ListItemValueId", null); Entity.SetColumnValue("ProductTypeValueId", null); Entity.SetColumnValue("ProductCategoryValueId", null); attributeValue = GetColumnDisplayValue("TradeMark", Entity.ProductTradeMarkValueId); break; default: return(true); } ; Entity.SetColumnValue("StringValue", attributeValue); return(true); }
public static string toHorof2(string Number) { if (Number == "") { return(""); } Alphaset(); long No; string N; No = long.Parse(Number); N = No.ToString(); switch (N.Length) { case 1: case 2: case 3: if (No < 20) { return(AlphaNumeric1[No]); } else if (No < 100) { if (No % 10 == 0) { return(AlphaNumeric2[No / 10]); } else { return(AlphaNumeric2[No / 10] + " و " + toHorof((No % 10).ToString())); } } else if (No < 1000) { if (No % 100 == 0) { return(AlphaNumeric3[No / 100]); } else { return(AlphaNumeric3[No / 100] + " و " + toHorof((No % 100).ToString())); } } break; case 4: case 5: case 6: if (N.EndsWith("000")) { return(toHorof(N.Substring(0, N.Length - 3)) + " هزار "); } else { return(toHorof(N.Substring(0, N.Length - 3)) + " هزار " + " و" + toHorof(N.Substring(N.Length - 3, 3))); } case 7: case 8: case 9: if (N.EndsWith("000000")) { return(toHorof(N.Substring(0, N.Length - 6)) + " میلیون "); } else { return(toHorof(N.Substring(0, N.Length - 6)) + " میلیون " + " و" + toHorof(N.Substring(N.Length - 6, 6))); } default: if (N.EndsWith("000000000")) { return(toHorof(N.Substring(0, N.Length - 9)) + " میلیارد "); } else { return(toHorof(N.Substring(0, N.Length - 9)) + " میلیارد " + " و" + toHorof(N.Substring(N.Length - 9, 9))); } } throw new ArgumentException(); }
public override string ToString() { return("编号: " + No.ToString() + ", 产品名称: " + Name + "日期: " + ProductDate.ToShortDateString()); }
public void PopulateForm() { // Salutation ddlSalutation.Items.Clear(); ddlSalutation.Items.Add(new ListItem("Select", "")); ddlSalutation.Items.Add("Dr."); ddlSalutation.Items.Add("Mr."); ddlSalutation.Items.Add("Ms."); ddlSalutation.Items.Add("Mrs."); // Country - to add APAC countries before the rest ddlCountry.Items.Clear(); ddlCountry.Items.Add(new ListItem("Select", "")); ddlCountry.Items.Add(new ListItem("Australia", "Australia")); ddlCountry.Items.Add(new ListItem("Bangladesh", "Bangladesh")); ddlCountry.Items.Add(new ListItem("Bhutan", "Bhutan")); ddlCountry.Items.Add(new ListItem("Cambodia", "Cambodia")); ddlCountry.Items.Add(new ListItem("China", "China")); ddlCountry.Items.Add(new ListItem("Cook Islands", "Cook Islands")); ddlCountry.Items.Add(new ListItem("Fiji", "Fiji")); ddlCountry.Items.Add(new ListItem("French Polynesia", "French Polynesia")); ddlCountry.Items.Add(new ListItem("Hong Kong", "Hong Kong")); ddlCountry.Items.Add(new ListItem("India", "India")); ddlCountry.Items.Add(new ListItem("Indonesia", "Indonesia")); ddlCountry.Items.Add(new ListItem("Japan", "Japan")); ddlCountry.Items.Add(new ListItem("Kazakhstan", "Kazakhstan")); ddlCountry.Items.Add(new ListItem("Kiribati", "Kiribati")); ddlCountry.Items.Add(new ListItem("Korea", "Korea")); ddlCountry.Items.Add(new ListItem("Laos", "Laos")); ddlCountry.Items.Add(new ListItem("Malaysia", "Malaysia")); ddlCountry.Items.Add(new ListItem("Maldives", "Maldives")); ddlCountry.Items.Add(new ListItem("Marshall Islands", "Marshall Islands")); ddlCountry.Items.Add(new ListItem("Micronesia", "Micronesia")); ddlCountry.Items.Add(new ListItem("Mongolia", "Mongolia")); ddlCountry.Items.Add(new ListItem("Myanmar", "Myanmar")); ddlCountry.Items.Add(new ListItem("Nauru", "Nauru")); ddlCountry.Items.Add(new ListItem("Nepal", "Nepal")); ddlCountry.Items.Add(new ListItem("New Caledonia", "New Caledonia")); ddlCountry.Items.Add(new ListItem("New Zealand", "New Zealand")); ddlCountry.Items.Add(new ListItem("Niue", "Niue")); ddlCountry.Items.Add(new ListItem("Pakistan", "Pakistan")); ddlCountry.Items.Add(new ListItem("Palau", "Palau")); ddlCountry.Items.Add(new ListItem("Philippines", "Philippines")); ddlCountry.Items.Add(new ListItem("Samoa", "Samoa")); ddlCountry.Items.Add(new ListItem("Singapore", "Singapore")); ddlCountry.Items.Add(new ListItem("Solomon Islands", "Solomon Islands")); ddlCountry.Items.Add(new ListItem("Sri Lanka", "Sri Lanka")); ddlCountry.Items.Add(new ListItem("Taiwan", "Taiwan")); ddlCountry.Items.Add(new ListItem("Thailand", "Thailand")); ddlCountry.Items.Add(new ListItem("Timor-Leste", "Timor-Leste")); ddlCountry.Items.Add(new ListItem("Tonga", "Tonga")); ddlCountry.Items.Add(new ListItem("Tuvalu", "Tuvalu")); ddlCountry.Items.Add(new ListItem("Uzbekistan", "Uzbekistan")); ddlCountry.Items.Add(new ListItem("Vanautu", "Vanautu")); ddlCountry.Items.Add(new ListItem("Vietnam", "Vietnam")); ddlCountry.Items.Add(new ListItem("-------Rest of the Standard Countries---------", "")); GeneralFunction.LoadDropDownListCountry(ddlCountry); // Client Company Network ddlClientCompanyNetwork.Items.Clear(); ddlClientCompanyNetwork.Items.Add(new ListItem("Select", "")); ddlClientCompanyNetwork.Items.Add("360buy"); ddlClientCompanyNetwork.Items.Add("361°"); ddlClientCompanyNetwork.Items.Add("7-Eleven, Inc."); ddlClientCompanyNetwork.Items.Add("A.F. Watsons Group"); ddlClientCompanyNetwork.Items.Add("AB InBev"); ddlClientCompanyNetwork.Items.Add("Adidas"); ddlClientCompanyNetwork.Items.Add("Aditya Birla Group"); ddlClientCompanyNetwork.Items.Add("Alibaba"); ddlClientCompanyNetwork.Items.Add("Alipay"); ddlClientCompanyNetwork.Items.Add("Amnesty International"); ddlClientCompanyNetwork.Items.Add("Amway"); ddlClientCompanyNetwork.Items.Add("Apaiporn Srisook"); ddlClientCompanyNetwork.Items.Add("Audi"); ddlClientCompanyNetwork.Items.Add("AVON"); ddlClientCompanyNetwork.Items.Add("AXA"); ddlClientCompanyNetwork.Items.Add("Baidu"); ddlClientCompanyNetwork.Items.Add("Bank of New Zealand"); ddlClientCompanyNetwork.Items.Add("Bayer"); ddlClientCompanyNetwork.Items.Add("Bear Electric"); ddlClientCompanyNetwork.Items.Add("BenQ"); ddlClientCompanyNetwork.Items.Add("BMW"); ddlClientCompanyNetwork.Items.Add("Boundary Road Brewery"); ddlClientCompanyNetwork.Items.Add("BP"); ddlClientCompanyNetwork.Items.Add("Brother"); ddlClientCompanyNetwork.Items.Add("Cadbury"); ddlClientCompanyNetwork.Items.Add("Campbell Moore"); ddlClientCompanyNetwork.Items.Add("Canon"); ddlClientCompanyNetwork.Items.Add("Carlsberg"); ddlClientCompanyNetwork.Items.Add("Centre for Enabled Living"); ddlClientCompanyNetwork.Items.Add("Cerebos"); ddlClientCompanyNetwork.Items.Add("China Telecom"); ddlClientCompanyNetwork.Items.Add("CHIVAS"); ddlClientCompanyNetwork.Items.Add("Christchurch & Canterbury Tourism"); ddlClientCompanyNetwork.Items.Add("Chrysler"); ddlClientCompanyNetwork.Items.Add("Citibank"); ddlClientCompanyNetwork.Items.Add("Clarks"); ddlClientCompanyNetwork.Items.Add("Coach"); ddlClientCompanyNetwork.Items.Add("Coca-Cola"); ddlClientCompanyNetwork.Items.Add("Columbia Sportswear"); ddlClientCompanyNetwork.Items.Add("CSL Limited"); ddlClientCompanyNetwork.Items.Add("Daimler AG"); ddlClientCompanyNetwork.Items.Add("Danone"); ddlClientCompanyNetwork.Items.Add("Danzi"); ddlClientCompanyNetwork.Items.Add("DBS"); ddlClientCompanyNetwork.Items.Add("Dell"); ddlClientCompanyNetwork.Items.Add("Diageo"); ddlClientCompanyNetwork.Items.Add("Dior"); ddlClientCompanyNetwork.Items.Add("Disney"); ddlClientCompanyNetwork.Items.Add("Dongsuh Food"); ddlClientCompanyNetwork.Items.Add("eLong"); ddlClientCompanyNetwork.Items.Add("Estee Lauder Companies"); ddlClientCompanyNetwork.Items.Add("FAW Hainan Motor"); ddlClientCompanyNetwork.Items.Add("Ferrero"); ddlClientCompanyNetwork.Items.Add("Fiat"); ddlClientCompanyNetwork.Items.Add("Fiat Chrysler"); ddlClientCompanyNetwork.Items.Add("Fonterra Co-operative Group"); ddlClientCompanyNetwork.Items.Add("Ford Motor Company"); ddlClientCompanyNetwork.Items.Add("Foton"); ddlClientCompanyNetwork.Items.Add("Garnier"); ddlClientCompanyNetwork.Items.Add("Gatorade"); ddlClientCompanyNetwork.Items.Add("General Electric Company"); ddlClientCompanyNetwork.Items.Add("General Motors"); ddlClientCompanyNetwork.Items.Add("GlaxoSmithKline"); ddlClientCompanyNetwork.Items.Add("Google"); ddlClientCompanyNetwork.Items.Add("Greenpeace"); ddlClientCompanyNetwork.Items.Add("Haier"); ddlClientCompanyNetwork.Items.Add("Health Promotion Agency"); ddlClientCompanyNetwork.Items.Add("Health Promotion Board"); ddlClientCompanyNetwork.Items.Add("Heart & Sole"); ddlClientCompanyNetwork.Items.Add("Heineken"); ddlClientCompanyNetwork.Items.Add("Hell Pizza"); ddlClientCompanyNetwork.Items.Add("Hewlett-Packard Company"); ddlClientCompanyNetwork.Items.Add("Hungry Jack's"); ddlClientCompanyNetwork.Items.Add("Hyundai Group"); ddlClientCompanyNetwork.Items.Add("Hyundai Motor Company"); ddlClientCompanyNetwork.Items.Add("IBM"); ddlClientCompanyNetwork.Items.Add("ICICI Bank"); ddlClientCompanyNetwork.Items.Add("IKEA"); ddlClientCompanyNetwork.Items.Add("Insurance Australia Group"); ddlClientCompanyNetwork.Items.Add("Intel"); ddlClientCompanyNetwork.Items.Add("Johnson & Johnson"); ddlClientCompanyNetwork.Items.Add("Kewal Kiran Clothing Limited"); ddlClientCompanyNetwork.Items.Add("Kia Motors"); ddlClientCompanyNetwork.Items.Add("Kimberly-Clark"); ddlClientCompanyNetwork.Items.Add("Kirin Company, Limited"); ddlClientCompanyNetwork.Items.Add("Kmart"); ddlClientCompanyNetwork.Items.Add("Kraft"); ddlClientCompanyNetwork.Items.Add("Land Rover"); ddlClientCompanyNetwork.Items.Add("Leaf"); ddlClientCompanyNetwork.Items.Add("Lego Group"); ddlClientCompanyNetwork.Items.Add("Lenovo"); ddlClientCompanyNetwork.Items.Add("Levi Strauss & Co."); ddlClientCompanyNetwork.Items.Add("LG Electronics"); ddlClientCompanyNetwork.Items.Add("Lipton"); ddlClientCompanyNetwork.Items.Add("L'Oréal"); ddlClientCompanyNetwork.Items.Add("Luxottica"); ddlClientCompanyNetwork.Items.Add("LVMH"); ddlClientCompanyNetwork.Items.Add("Mars"); ddlClientCompanyNetwork.Items.Add("McDonald's"); ddlClientCompanyNetwork.Items.Add("MENGNIU"); ddlClientCompanyNetwork.Items.Add("Mercedes-Benz"); ddlClientCompanyNetwork.Items.Add("Metersbonwe Group"); ddlClientCompanyNetwork.Items.Add("Microsoft"); ddlClientCompanyNetwork.Items.Add("Mitre 10 (NZ) Limited"); ddlClientCompanyNetwork.Items.Add("Mizuno"); ddlClientCompanyNetwork.Items.Add("Mondelez International"); ddlClientCompanyNetwork.Items.Add("Motorola"); ddlClientCompanyNetwork.Items.Add("MTM"); ddlClientCompanyNetwork.Items.Add("Nestlé"); ddlClientCompanyNetwork.Items.Add("NetEase"); ddlClientCompanyNetwork.Items.Add("Neutrogena"); ddlClientCompanyNetwork.Items.Add("New Balance"); ddlClientCompanyNetwork.Items.Add("Nike"); ddlClientCompanyNetwork.Items.Add("Nikon Corporation"); ddlClientCompanyNetwork.Items.Add("Nissan"); ddlClientCompanyNetwork.Items.Add("Nissin"); ddlClientCompanyNetwork.Items.Add("Nivea"); ddlClientCompanyNetwork.Items.Add("Nokia"); ddlClientCompanyNetwork.Items.Add("NSW Rural Fire Service"); ddlClientCompanyNetwork.Items.Add("ORBIS"); ddlClientCompanyNetwork.Items.Add("Parmalat"); ddlClientCompanyNetwork.Items.Add("PepsiCo"); ddlClientCompanyNetwork.Items.Add("Pernod Ricard"); ddlClientCompanyNetwork.Items.Add("Peugeot"); ddlClientCompanyNetwork.Items.Add("Philippine Department of Tourism"); ddlClientCompanyNetwork.Items.Add("Philips"); ddlClientCompanyNetwork.Items.Add("Pizza Hut"); ddlClientCompanyNetwork.Items.Add("Procter & Gamble"); ddlClientCompanyNetwork.Items.Add("Protoleaf"); ddlClientCompanyNetwork.Items.Add("Puma"); ddlClientCompanyNetwork.Items.Add("Reckitt Benckiser"); ddlClientCompanyNetwork.Items.Add("Red Bull"); ddlClientCompanyNetwork.Items.Add("Samsung"); ddlClientCompanyNetwork.Items.Add("sanofi-aventis"); ddlClientCompanyNetwork.Items.Add("SAP"); ddlClientCompanyNetwork.Items.Add("Save Our Sons"); ddlClientCompanyNetwork.Items.Add("Shabondama Soap Co., Ltd."); ddlClientCompanyNetwork.Items.Add("Shanghai General Motors"); ddlClientCompanyNetwork.Items.Add("Shiseido"); ddlClientCompanyNetwork.Items.Add("Siemens"); ddlClientCompanyNetwork.Items.Add("Singapore University of Technology and Design"); ddlClientCompanyNetwork.Items.Add("Sony"); ddlClientCompanyNetwork.Items.Add("Subaru"); ddlClientCompanyNetwork.Items.Add("Subway"); ddlClientCompanyNetwork.Items.Add("Suntory Group"); ddlClientCompanyNetwork.Items.Add("Taiwan Beer"); ddlClientCompanyNetwork.Items.Add("Taiwan High Speed Rail"); ddlClientCompanyNetwork.Items.Add("TESCO"); ddlClientCompanyNetwork.Items.Add("Thai Health Promotion Foundation"); ddlClientCompanyNetwork.Items.Add("The Campbell Soup Company"); ddlClientCompanyNetwork.Items.Add("Toyota"); ddlClientCompanyNetwork.Items.Add("Unilever"); ddlClientCompanyNetwork.Items.Add("UNITED ARROWS LTD."); ddlClientCompanyNetwork.Items.Add("UPS"); ddlClientCompanyNetwork.Items.Add("V8 Supercars"); ddlClientCompanyNetwork.Items.Add("Virgin Mobile Group"); ddlClientCompanyNetwork.Items.Add("Volkswagen AG"); ddlClientCompanyNetwork.Items.Add("Wrigley Confectionery (China) Limited"); ddlClientCompanyNetwork.Items.Add("Wyeth Consumer Healthcare"); ddlClientCompanyNetwork.Items.Add("Xian Janssen Pharmaceutical"); ddlClientCompanyNetwork.Items.Add("Yadea"); ddlClientCompanyNetwork.Items.Add("Yili"); ddlClientCompanyNetwork.Items.Add("Yuen Foong Yu Group"); ddlClientCompanyNetwork.Items.Add("Yum! Brands"); ddlClientCompanyNetwork.Items.Add("Zespri"); ddlClientCompanyNetwork.Items.Add(new ListItem("Others, pls specify", "Others")); // Network GeneralFunction.LoadddlNetwork(ddlNetwork, true, true); // Holding COmpany GeneralFunction.LoadddlHoldingCompany(ddlHoldingCompany, true, true); // pop type // check if there is already 2 Leads, then dont pop the lead anymomre ddlContactType.Items.Clear(); ddlContactType.Items.Add(new ListItem("Select", "")); if (GeneralFunction.NumberOfClientInListCache() < 2 || ContactType == "Client") { ddlContactType.Items.Add(new ListItem("Client", "Client")); } if (GeneralFunction.NumberOfLeadInListCache() < 2 || ContactType == "Lead Agency") { ddlContactType.Items.Add(new ListItem("Lead Agency", "Lead Agency")); } if (GeneralFunction.NumberOfContributingCompanyInListCache() < 4 || ContactType == "Contributing Agency") { ddlContactType.Items.Add(new ListItem("Contributing Agency", "Contributing Agency")); } lbType.Text = ContactType; txtCompany.Text = Company; txtAddress1.Text = Address1; txtAddress2.Text = Address2; txtCity.Text = City; txtPostal.Text = Postal; ddlCountry.SelectedValue = Country; ddlSalutation.SelectedValue = Salutation; txtFullname.Text = Fullname; txtJob.Text = Job; txtContactCountry.Text = GeneralFunction.GetCountryCodeFromContactNumber(Contact); txtContactArea.Text = GeneralFunction.GetAreaCodeFromContactNumber(Contact); txtContactNumber.Text = GeneralFunction.GetNumberFromContactNumber(Contact); txtEmail.Text = Email; ddlCompanyType.SelectedValue = CompanyType; txtCompanyTypeOther.Text = CompanyTypeOther; ddlClientCompanyNetwork.SelectedValue = ClientCompanyNetwork; txtClientCompanyNetworkOthers.Text = ClientCompanyNetworkOthers; txtNetworkOther.Text = NetworkOther; try { ddlNetwork.SelectedValue = Network; } catch { ddlNetwork.SelectedValue = ""; } try { ddlHoldingCompany.SelectedValue = HoldingCompany; } catch { ddlHoldingCompany.SelectedValue = ""; } txtHoldingCompanyOther.Text = HoldingCompanyOther; hldRecordId.Value = RecordId.ToString(); hldIsNew.Value = IsNew.ToString(); hldEntryId.Value = EntryId.ToString(); hldNo.Value = No.ToString(); hldDateCreated.Value = DateCreated.ToString(); hldDateModified.Value = DateModified.ToString(); // hide the others textboxes by defasult phClientCompanyNetworkOther.Visible = false; phNetworkOther.Visible = false; phHoldingCompanyOther.Visible = false; if (txtClientCompanyNetworkOthers.Text.Trim() != "") { phClientCompanyNetworkOther.Visible = true; } if (txtNetworkOther.Text.Trim() != "") { phNetworkOther.Visible = true; } if (txtHoldingCompanyOther.Text.Trim() != "") { phHoldingCompanyOther.Visible = true; } // show up the ddl or label for type ddlContactType.Visible = false; lbType.Visible = false; //if (ContactType == "") // ddlContactType.Visible = true; //else // lbType.Visible = true; // only editable for type for 3rd CC onwards ShowCompanyType(No, ContactType); // scrolls up to the cc table after postback btnSubmit.OnClientClick = "location.hash = 'CCTABLE'; return true;"; btnCancel.OnClientClick = "location.hash = 'CCTABLE'; return true;"; }
private void ImprimirArvore(No Raiz) { texto += (string.IsNullOrEmpty(texto) ? string.Empty : Environment.NewLine) + $"({ Raiz.ToString()})"; if (Raiz.Esquerda != null) { texto += $"-({Raiz.ValorArestaEsquerda})->Esquerda({Raiz.Esquerda.ToString()})"; } if (Raiz.Direita != null) { texto += $"-({Raiz.ValorArestaDireita})->Direita({Raiz.Direita.ToString()})"; } if (Raiz.Esquerda != null) { ImprimirArvore(Raiz.Esquerda); } if (Raiz.Direita != null) { ImprimirArvore(Raiz.Direita); } }
public override string ToString() { return(String.Format("{0} {1} {2}", Adi, No.ToString(), DogumTarih.ToLongDateString())); }