public void GetTemplateTreeData(string deptcode, int level) { List <EMR.Controls.Entity.EmrTemplateTree> tlist = iEmrTemplateDbHelper.GetTemplateTreeData(deptcode, currBindKeyData.UserCode, level); List <EMR.Controls.Entity.EmrCatalogue> clist = iEmrTemplateDbHelper.GetCatalogueData(); iEmrTemplateTree.loadTreeData(clist, tlist); }
public void InitTemplate(IEmrTemplateTree _emrTemplateTree) { iEmrTemplateTree = _emrTemplateTree; iEmrTemplateDbHelper = emrDbHelper as IEmrTemplateDbHelper; iEmrTemplateTree.loadDeptData(iEmrTemplateDbHelper.GetDeptData(), currBindKeyData.CurrDeptCode); List <EMR.Controls.Entity.EmrTemplateTree> tlist = iEmrTemplateDbHelper.GetTemplateTreeData(currBindKeyData.CurrDeptCode, currBindKeyData.UserCode, 0); List <EMR.Controls.Entity.EmrCatalogue> clist = iEmrTemplateDbHelper.GetCatalogueData(); iEmrTemplateTree.loadTreeData(clist, tlist); }