public void SetPhoto(int p_oid, string p_photo) { /*PROTECTED REGION ID(ChroniGenNHibernate.CEN.Chroni_Practitioner_setPhoto) ENABLED START*/ // Write here your custom code... PractitionerCAD practitionerCAD = new PractitionerCAD(); PractitionerCEN practitionerCEN = new PractitionerCEN(practitionerCAD); if (p_oid > 0) { PractitionerEN practitioner = practitionerCEN.ReadOID(p_oid); if (practitioner != null) { if (!string.IsNullOrEmpty(p_photo)) { practitioner.Photo = p_photo; practitionerCAD.Modify(practitioner); } } } /*PROTECTED REGION END*/ }
public void SetGender(int p_oid, ChroniGenNHibernate.Enumerated.Chroni.GenderEnum p_gender) { /*PROTECTED REGION ID(ChroniGenNHibernate.CEN.Chroni_Practitioner_setGender) ENABLED START*/ // Write here your custom code... PractitionerCAD practitionerCAD = new PractitionerCAD(); PractitionerCEN practitionerCEN = new PractitionerCEN(practitionerCAD); if (p_oid > 0) { PractitionerEN practitioner = practitionerCEN.ReadOID(p_oid); if (practitioner != null) { if (p_gender > 0) { practitioner.Gender = p_gender; practitionerCAD.Modify(practitioner); } } } /*PROTECTED REGION END*/ }
public void SetPassword(int p_oid, string p_passwordCurrant, string p_passwordNew) { /*PROTECTED REGION ID(ChroniGenNHibernate.CEN.Chroni_Practitioner_setPassword) ENABLED START*/ // Write here your custom code... PractitionerCAD practitionerCAD = new PractitionerCAD(); PractitionerCEN practitionerCEN = new PractitionerCEN(practitionerCAD); if (p_oid > 0) { PractitionerEN practitioner = practitionerCEN.ReadOID(p_oid); if (practitioner != null) { if (!string.IsNullOrEmpty(p_passwordCurrant) && !string.IsNullOrEmpty(p_passwordNew)) { if (Utils.Util.GetEncondeMD5(p_passwordCurrant).Equals(practitioner.Password)) { practitioner.Password = Utils.Util.GetEncondeMD5(p_passwordNew); practitionerCAD.Modify(practitioner); } } } } /*PROTECTED REGION END*/ }
public void SetEndDate(int p_oid, Nullable <DateTime> p_endDate) { /*PROTECTED REGION ID(ChroniGenNHibernate.CEN.Chroni_Practitioner_setEndDate) ENABLED START*/ // Write here your custom code... PractitionerCAD practitionerCAD = new PractitionerCAD(); PractitionerCEN practitionerCEN = new PractitionerCEN(practitionerCAD); if (p_oid > 0) { PractitionerEN practitioner = practitionerCEN.ReadOID(p_oid); if (practitioner != null) { if (p_endDate != null && p_endDate >= practitioner.StartDate) { practitioner.EndDate = p_endDate; practitionerCAD.Modify(practitioner); } } } /*PROTECTED REGION END*/ }
public void SetActive(int p_oid, bool p_active) { /*PROTECTED REGION ID(ChroniGenNHibernate.CEN.Chroni_Practitioner_setActive) ENABLED START*/ // Write here your custom code... PractitionerCAD practitionerCAD = new PractitionerCAD(); PractitionerCEN practitionerCEN = new PractitionerCEN(practitionerCAD); if (p_oid > 0) { PractitionerEN practitioner = practitionerCEN.ReadOID(p_oid); if (practitioner != null) { practitioner.Active = p_active; practitionerCAD.Modify(practitioner); } } /*PROTECTED REGION END*/ }