private void UpdateData() { if (this.comboNames.SelectedValue != null) { int id = int.Parse(this.comboNames.SelectedValue.ToString()); HospitalMaster row = BaseMasterModel.Find <HospitalMaster>(this.m_db.Conn, id); SetData(row); } }
private void UpdateData() { if (this.comboNames.SelectedValue != null) { int id = GetComboSelectedValueAsInt(comboNames); SectionMaster row = BaseMasterModel.Find <SectionMaster>(this.m_db.Conn, id); SetData(row); } }
public static BaseMasterModel ToBaseMaster(this Master master) { BaseMasterModel _result = new BaseMasterModel(); _result.Id = master.Id; _result.FormName = master.FormName; _result.IsTwoLineForHedder = master.IsTwoLineForHedder; _result.IsTwoLineForDetails = master.IsTwoLineForDetails; _result.PageSize = master.PageSize; _result.PageSizeOther = master.PageSizeOther; _result.BlankLineForFooter = master.BlankLineForFooter; _result.FooterLocation = master.FooterLocation; _result.LineCountBetweenTwo = master.LineCountBetweenTwo; _result.Pitch = master.Pitch; _result.Condensed = master.Condensed; _result.LineCountAfterPrint = master.LineCountAfterPrint; _result.CreatedDate = master.CreatedDate; _result.ModifiedDate = master.ModifiedDate; return(_result); }
public static Master ToMaster(this BaseMasterModel master) { Master _result = new Master(); if (master.Id.HasValue) { _result.Id = master.Id.GetValueOrDefault(); } _result.FormName = master.FormName; _result.IsTwoLineForHedder = master.IsTwoLineForHedder; _result.IsTwoLineForDetails = master.IsTwoLineForDetails; _result.PageSize = master.PageSize; _result.PageSizeOther = master.PageSizeOther; _result.BlankLineForFooter = master.BlankLineForFooter; _result.FooterLocation = master.FooterLocation; _result.LineCountBetweenTwo = master.LineCountBetweenTwo; _result.Pitch = master.Pitch; _result.Condensed = master.Condensed; _result.LineCountAfterPrint = master.LineCountAfterPrint; _result.CreatedDate = master.CreatedDate; _result.ModifiedDate = master.ModifiedDate; return(_result); }