public string addTannersStaging(int patientId, int patientMasterVisitId, int createdBy, DateTime tannersStagingDate, int breastsGenitals, int pubicHair) { try { PatientTannersStaging tannersStaging = new PatientTannersStaging() { PatientId = patientId, PatientMasterVisitId = patientMasterVisitId, CreatedBy = createdBy, TannersStagingDate = tannersStagingDate, BreastsGenitalsId = breastsGenitals, PubicHairId = pubicHair }; var tanners = new TannersStagingManager(); Result = tanners.AddTannersStaging(tannersStaging); if (Result > 0) { Msg = "Tanner Stage Added Successfully"; } else { Msg = "Incremental Error"; } } catch (Exception e) { Msg = e.Message; } return(Msg); }
public List <TannersStaging> getRecordTannersStaging() { ArrayList rows = new ArrayList(); var tanersLogic = new TannersStagingManager(); List <TannersStaging> list = new List <TannersStaging>(); list = tanersLogic.getRecordTannersStaging(Convert.ToInt32(Session["PatientPK"])); return(list); }
public int checkTannersStaging() { int tannersrecords = 0; var tanersLogic = new TannersStagingManager(); List <PatientTannersStaging> list = new List <PatientTannersStaging>(); list = tanersLogic.getTannersStaging(Convert.ToInt32(Session["PatientPK"])); foreach (var items in list) { tannersrecords = tannersrecords + 1; } return(tannersrecords); }
public string DeleteTanners(int tannersId) { try { var tannersLogic = new TannersStagingManager(); tannersLogic.DeleteTanners(tannersId); Msg = "Deleted"; } catch (Exception e) { Msg = e.Message; } return(Msg); }
public string recordTannersStaging(int patientId, int patientMasterVisitId, int createdBy, int recordTannersStaging) { var tanners = new TannersStagingManager(); Result = tanners.recordTannersStaging(patientId, patientMasterVisitId, createdBy, recordTannersStaging); if (Result > 0) { Msg = "Tanners staging recorded"; } else { Msg = "Tanners staging not recorded"; } return(Msg); }
public ArrayList LoadTannersStaging() { ArrayList rows = new ArrayList(); var tanersLogic = new TannersStagingManager(); List <PatientTannersStaging> list = new List <PatientTannersStaging>(); list = tanersLogic.getTannersStaging(Convert.ToInt32(Session["PatientPK"])); foreach (var items in list) { string[] i = new string[5] { items.Id.ToString(), Convert.ToDateTime(items.TannersStagingDate).ToString("dd-MMM-yyyy"), LookupLogic.GetLookupNameById(items.BreastsGenitalsId).ToString(), LookupLogic.GetLookupNameById(items.PubicHairId).ToString(), "<button type='button' class='btnDelete btn btn-danger fa fa-minus-circle btn-fill' > Remove</button>" }; rows.Add(i); } return(rows); }
public string updateRecordTannersStaging(int patientId, int patientMasterVisitId, int recordTannersStaging, int tannersId) { try { var SH = new TannersStagingManager(); Result = SH.updateRecordTannersStaging(patientId, patientMasterVisitId, recordTannersStaging, tannersId); if (Result > 0) { Msg = "Tanners staging updated"; } } catch (Exception e) { Msg = e.Message; } return(Msg); }