protected void FillControl() { TTSHWCFServiceClient cl = new TTSHWCFServiceClient(); List <Project_Master> Pjctlist = new List <Project_Master>(); List <Contract_Collobrator_Master> ccmlist = new List <Contract_Collobrator_Master>(); List <PI_Master> pi_mlist = new List <PI_Master>(); Contract_Master cmlist = new Contract_Master(); try { cmlist = cl.GetContract_MasterDetailsByID(Convert.ToInt32(HdnId.Value)); Pjctlist = cmlist.pjctmList.ToList(); TxtProjTitle.Text = Pjctlist.ListToDatatable().Rows[0]["s_Project_Title"].ToString(); TxtAlias1.Text = Pjctlist.ListToDatatable().Rows[0]["s_Project_Alias1"].ToString(); TxtAlias2.Text = Pjctlist.ListToDatatable().Rows[0]["s_Project_Alias2"].ToString(); TxtShortTitle.Text = Pjctlist.ListToDatatable().Rows[0]["s_Short_Title"].ToString(); TxtIrbNo.Text = Pjctlist.ListToDatatable().Rows[0]["s_IRB_No"].ToString(); TxtprojCategory.Text = Pjctlist.ListToDatatable().Rows[0]["Project_Category_Name"].ToString(); HdnProject_Id.Value = Pjctlist.ListToDatatable().Rows[0]["i_ID"].ToString(); DispProjectId.InnerText = Pjctlist.ListToDatatable().Rows[0]["s_Display_Project_ID"].ToString(); pi_mlist = cmlist.pmlist.ToList(); rptrPIDetails.DataSource = pi_mlist; rptrPIDetails.DataBind(); TxtContAssignDate.Text = cmlist.dt_Contract_AssignDate; TxtContractReqDate.Text = cmlist.dt_Contract_ReqDate; ccmlist = cmlist.ccdlist.ToList(); RptrCollaborator.DataSource = ccmlist; RptrCollaborator.DataBind(); FillReviewdBy(); DdlReviewedBy.SelectedIndex = DdlReviewedBy.Items.IndexOf(DdlReviewedBy.Items.FindByValue(Convert.ToString(cmlist.i_ReviewedBy_ID))); } catch (Exception ex) { throw ex; } }
protected void FillProjectDataForNewEntry() { TTSHWCFServiceClient servcl = new TTSHWCFServiceClient(); List <PI_Master> piLst = new List <PI_Master>(); List <Contract_Collobrator_Master> ccmlst = new List <Contract_Collobrator_Master>(); List <Project_Master> pjmasterlist = new List <Project_Master>(); ProjectDataforContractUsers pdc = new ProjectDataforContractUsers(); try { pdc = servcl.FillProjectDataforContractUsers(Convert.ToInt32(HdnProjectId.Value)); piLst = pdc.Pilisst.ToList(); ccmlst = pdc.ccmlist.ToList(); pjmasterlist = pdc.pmlist.ToList(); TxtProjTitle.Text = pjmasterlist.ListToDatatable().Rows[0]["s_Project_Title"].ToString(); TxtAlias1.Text = pjmasterlist.ListToDatatable().Rows[0]["s_Project_Alias1"].ToString(); TxtAlias2.Text = pjmasterlist.ListToDatatable().Rows[0]["s_Project_Alias2"].ToString(); TxtShortTitle.Text = pjmasterlist.ListToDatatable().Rows[0]["s_Short_Title"].ToString(); TxtIrbNo.Text = pjmasterlist.ListToDatatable().Rows[0]["s_IRB_No"].ToString(); TxtprojCategory.Text = pjmasterlist.ListToDatatable().Rows[0]["Project_Category_Name"].ToString(); DispProjectId.InnerText = pjmasterlist.ListToDatatable().Rows[0]["s_Display_Project_ID"].ToString(); rptrPIDetails.DataSource = piLst; rptrPIDetails.DataBind(); RptrCollaborator.DataSource = ccmlst; RptrCollaborator.DataBind(); var q = (from i in ccmlst select new { i.i_ID, i.s_Name }).ToList().ListToDatatable(); FillCollaboratoList(q); } catch (Exception) { throw; } }
protected void ClearControl() { try { TxtProjTitle.Text = ""; TxtAlias1.Text = ""; TxtAlias2.Text = ""; TxtShortTitle.Text = ""; TxtprojCategory.Text = ""; TxtIrbNo.Text = ""; rptrPIDetails.DataSource = null; rptrPIDetails.DataBind(); RptrCollaborator.DataSource = null; RptrCollaborator.DataBind(); TxtNCollabator.Text = ""; TxtNEmail1.Text = ""; TxtNInstitution.Text = ""; TxtNCountry.Text = ""; TxtNEmail2.Text = ""; TxtNPhNo.Text = ""; TxtMCollaborator.Text = ""; TxtMInstitution.Text = ""; TxtMPhNo.Text = ""; TxtContractId.Text = ""; TxtMEmailAdd1.Text = ""; TxtMEmailAdd2.Text = ""; TxtMCountry.Text = ""; DdlReviewedBy.SelectedIndex = 0; } catch (Exception ex) { this.MsgBox(ex.Message); } }
protected void ClearControl() { TxtProjTitle.Text = ""; TxtAlias1.Text = ""; TxtAlias2.Text = ""; TxtShortTitle.Text = ""; TxtprojCategory.Text = ""; TxtIrbNo.Text = ""; rptrPIDetails.DataSource = null; rptrPIDetails.DataBind(); RptrCollaborator.DataSource = null; RptrCollaborator.DataBind(); RptContract.DataSource = null; RptContract.DataBind(); }