public IList <KeyValuePair <string, string> > GetValues() { return(new List <KeyValuePair <string, string> >() { new KeyValuePair <string, string>("Customer Code", CustomerCode), new KeyValuePair <string, string>("Customer Name", CustomerName), new KeyValuePair <string, string>("Name", Name), new KeyValuePair <string, string>("Department", Department), new KeyValuePair <string, string>("Designation", Designation), new KeyValuePair <string, string>("Email", Email), new KeyValuePair <string, string>("Contact No", ContactNo), new KeyValuePair <string, string>("Active", Active.ToString()), new KeyValuePair <string, string>("Deleted", Deleted.ToString()), new KeyValuePair <string, string>("Level Of Authority", LevelOfAuthority.ToString()), new KeyValuePair <string, string>("Main Customer Code", MainCustomerCode) }); }
protected override void OnWriteToStringContent(StringBuilder sb) { base.OnWriteToStringContent(sb); sb.Append(",Deleted="); sb.Append(Deleted.ToString()); sb.Append(",Added="); sb.Append(Added.ToString()); sb.Append(",KeyValues=["); if (KeyValues != null && KeyValues.Length > 0) { sb.Append(KeyValues[0] == null ? "" : KeyValues[0].ToString()); for (int i = 1; i < KeyValues.Length; i++) { sb.Append(","); sb.Append(KeyValues[i] == null ? "" : KeyValues[i].ToString()); } } sb.Append("]"); }
public override string ToString() { string str = ""; str += "&idserver=\"" + IDServer.ToString() + "\""; if (IDUser != -1) { str += "&iduser=\"" + IDUser.ToString() + "\""; } if (BeginDate != null) { str += "&begindate=\"" + BeginDate.ToString("yyyy-MM-dd HH:mm:ss") + "\""; } if (EndDate != null) { str += "&enddate=\"" + EndDate.ToString("yyyy-MM-dd HH:mm:ss") + "\""; } if (Price != 0) { str += "&price=\"" + Price.ToString() + "\""; } if (IsActive != 0) { str += "&isactive=\"" + IsActive.ToString() + "\""; } if (Trncode != null && !Trncode.Equals("")) { str += "&trncode=\"" + Trncode + "\""; } if (Deleted != 0) { str += "&deleted=\"" + Deleted.ToString() + "\""; } if (InsertDate != null) { str += "&insertdate=\"" + InsertDate.ToString("yyyy-MM-dd HH:mm:ss") + "\""; } if (UpdateDate != null) { str += "&updatedate=\"" + UpdateDate.ToString("yyyy-MM-dd HH:mm:ss") + "\""; } return(str.Substring(1)); }
public override string ToString() { string str = ""; str += "&idserver=\"" + IDServer.ToString() + "\""; if (Name != null) { str += "&name=\"" + Name + "\""; } if (!Description.Equals("")) { str += "&description=\"" + Description + "\""; } if (IDLang != -1) { str += "&idlang=\"" + IDLang.ToString() + "\""; } if (IDUser != 0) { str += "&iduser=\"" + IDUser.ToString() + "\""; } if (IsActive != -1) { str += "&isActive=\"" + IsActive.ToString() + "\""; } if (Deleted != 0) { str += "&deleted=\"" + Deleted.ToString() + "\""; } if (InsertDate != null) { str += "&insertdate=\"" + InsertDate.ToString("yyyy-MM-dd HH:mm:ss") + "\""; } if (UpdateDate != null) { str += "&updatedate=\"" + UpdateDate.ToString("yyyy-MM-dd HH:mm:ss") + "\""; } return(str.Substring(1)); }
public virtual void Save() { int id; int.TryParse(_provider.Insert("SF_Organization", ID, NumberSF, TypeOrg, Name, ShortName, (MainSpec == null) ? 0 : MainSpec.ID, Email, Website, Phone, (ParentOrganization == null) ? 0 : ParentOrganization.ID, _machineGD, _machineGDF, _machineCRRT, _shift, _patientGD, _patientPD, _patientCRRT, INN, KPP, PostIndex, (RealRegion == null) ? 0 : RealRegion.ID, City, Street, Pharmacy, Deleted.ToString(), CrmID ), out id); ID = id; OrganizationList organizationList = OrganizationList.GetUniqueInstance(); organizationList.Add(this); }
public IList <KeyValuePair <string, string> > GetValues() { return(new List <KeyValuePair <string, string> >() { new KeyValuePair <string, string>("PickList No", PickListNo), new KeyValuePair <string, string>("Carton No", CartonNo.ToString()), new KeyValuePair <string, string>("Bar Code", Barcode), new KeyValuePair <string, string>("Location Code", LocationCode), new KeyValuePair <string, string>("WareHouse Code", WareHouseCode), new KeyValuePair <string, string>("Last SentDevice Id", LastSentDeviceId), new KeyValuePair <string, string>("Assigned User", AssignedUser), new KeyValuePair <string, string>("Request No", RequestNo), new KeyValuePair <string, string>("Picked User", PickedUser), new KeyValuePair <string, string>("IsPicked", IsPicked.ToString()), new KeyValuePair <string, string>("Pick Date", PickDate.ToString()), new KeyValuePair <string, string>("Deleted", Deleted.ToString()), new KeyValuePair <string, string>("Created User", CreatedUser), new KeyValuePair <string, string>("Created Date", CreatedDate), new KeyValuePair <string, string>("Lu User", LuUser.ToString()), new KeyValuePair <string, string>("Lu Date", LuDate) }); }
public virtual String ToString() { return(Id.ToString() + "-" + DisplayName + "-" + Type.ToString() + "-" + Deleted.ToString()); }
public override string ToString() { string str = ""; str += "&idserver=\"" + IDServer.ToString() + "\""; if (IDUnit != -1) { str += "&idunit=\"" + IDUnit.ToString() + "\""; } if (IDServerMeal != -1) { str += "&idmeal=\"" + IDServerMeal.ToString() + "\""; } if (IDUser != 0) { str += "&iduser=\"" + IDUser.ToString() + "\""; } if (Calories != -1) { str += "&calories=\"" + Calories.ToString() + "\""; } if (Protein != -1) { str += "&protein=\"" + Protein.ToString() + "\""; } if (Carb != -1) { str += "&carb=\"" + Carb.ToString() + "\""; } if (Fat != -1) { str += "&fat=\"" + Fat.ToString() + "\""; } if (SatFat != -1) { str += "&satfat=\"" + SatFat.ToString() + "\""; } if (UnSatFat != -1) { str += "&unsatfat=\"" + UnSatFat.ToString() + "\""; } if (Cholesterol != -1) { str += "&cholesterol=\"" + Cholesterol.ToString() + "\""; } if (Sugar != -1) { str += "&sugar=\"" + Sugar.ToString() + "\""; } if (Natrium != -1) { str += "&natrium=\"" + Natrium.ToString() + "\""; } if (Potassium != -1) { str += "&potassium=\"" + Potassium.ToString() + "\""; } if (Fiber != -1) { str += "&fiber=\"" + Fiber.ToString() + "\""; } if (Deleted != -1) { str += "&deleted=\"" + Deleted.ToString() + "\""; } if (InsertDate != null) { str += "&insertdate=\"" + InsertDate.ToString("yyyy-MM-dd HH:mm:ss") + "\""; } if (UpdateDate != null) { str += "&updatedate=\"" + UpdateDate.ToString("yyyy-MM-dd HH:mm:ss") + "\""; } return(str.Substring(1)); }
public String ToString() { return("Id-" + Id + "-" + DisplayName + "-" + Type.ToString() + "-" + Path + FolderType.ToString() + "-" + Deleted.ToString()); }
public override void Save() { if (ID == 0) { LpuList lpuList = new LpuList(); if (lpuList.IsInList(INN)) { throw new NullReferenceException("В списке уже есть организация с таким ИНН"); } } int idParentOrganization; idParentOrganization = (ParentOrganization == null) ? 0 : ParentOrganization.ID; int idLPURR = (LpuRR == null) ? 0 : LpuRR.ID; int idLPURR2 = (LpuRR2 == null) ? 0 : LpuRR2.ID; int id; int.TryParse(_provider.Insert("SF_LPU", ID, NumberSF, TypeOrg, Name, ShortName, (MainSpec == null) ? 0 : MainSpec.ID, Email, Website, Phone, idParentOrganization, (TypeLPU == null) ? 0 : TypeLPU.ID, (Ownership == null) ? 0 : Ownership.ID, (AdmLevel == null) ? 0 : AdmLevel.ID, INN, KPP, PostIndex, (RealRegion == null) ? 0 : RealRegion.ID, City, Street, idLPURR, _bedsTotal, _bedsIC, _bedsSurgical, _operating, _machineGD, _machineGDF, _machineCRRT, _shift, _patientGD, _patientPD, _patientCRRT, SubRegion, (TypeFin == null) ? 0 :TypeFin.ID, idLPURR2, Deleted.ToString(), CrmID ), out id); ID = id; OrganizationList.GetUniqueInstance().Add(this); }
//TODO: Сделать сохранение дня рождения public void Save() { int id; int.TryParse(_provider.Insert("SF_Person", ID, LastName, NumberSF, FirstName, SecondName, Appeal, (Position == null) ? 0 : Position.ID, (MainSpecPerson == null) ? 0 : MainSpecPerson.ID, (AcademTitle == null) ? 0 : AcademTitle.ID, Email, Mobile, Phone, Comment, (Organization == null) ? 0 : Organization.ID, Deleted.ToString(), CrmID), out id); ID = id; PersonList personList = GetPersonList(); personList.Add(this); }