public List <CreateListTemplate> GetAllExternalTemplate(string BPIDOrFH, string SecID, string BPID) { List <CreateListTemplate> lstTemp = new List <CreateListTemplate>(); DataSet ds = _fileData.GetBusinessTemplateBPIDOrFH(BPIDOrFH, SecID, 0, "Template", BPID); if (ds.Tables[0].Rows.Count > 0) { for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { CreateListTemplate objtemp = new CreateListTemplate(); objtemp.FileID = Convert.ToInt32(ds.Tables[0].Rows[i]["FileID"]); objtemp.TemplateDesc = Convert.ToString(ds.Tables[0].Rows[i]["TemplateDesc"]); objtemp.SECID = Convert.ToString(ds.Tables[0].Rows[i]["SECID"]); objtemp.Partner = Convert.ToString(ds.Tables[0].Rows[i]["Partner"]); lstTemp.Add(objtemp); } } return(lstTemp); }
public List <CreateListTemplate> GetTemplateDataForFinalTemplate(string BPID) { List <CreateListTemplate> lstTemp = new List <CreateListTemplate>(); DataSet ds = _fileData.GetTemplateWithSector(BPID); if (ds.Tables[0].Rows.Count > 0) { for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { CreateListTemplate objtemp = new CreateListTemplate(); objtemp.FileID = Convert.ToInt32(ds.Tables[0].Rows[i]["FileID"]); objtemp.TemplateDesc = Convert.ToString(ds.Tables[0].Rows[i]["TemplateDesc"]); objtemp.SECID = Convert.ToString(ds.Tables[0].Rows[i]["SECID"]); objtemp.Partner = Convert.ToString(ds.Tables[0].Rows[i]["Partner"]); lstTemp.Add(objtemp); } } return(lstTemp); }