private void ShowDocumentsSO2Registry() { DataSet dsGetDocumentName; lbllinkCheckListSo2.Text = ""; lblLinkChkList1.Text = ""; dsGetDocumentName = dbDocumentStatusData.DocumentExistInDocumentStatus(cmbVillage.SelectedValue.ToString(), cmbDocumentNo.SelectedValue.ToString(), "RCRS", "SO2"); if (dsGetDocumentName.Tables[0].Rows.Count > 0) { //string UploadedDocument = dsGetAllDocuments.Tables[0].Rows[0]["documentname"].ToString(); //if(UploadedDocument != "") //{ for (int i = 0; i < dsGetDocumentName.Tables[0].Rows.Count; i++) { string UploadedDocument = dsGetDocumentName.Tables[0].Rows[i]["documentname"].ToString(); string DocumentCode = dsGetDocumentName.Tables[0].Rows[i]["documentcode"].ToString(); if (DocumentCode == "RCRS") { lbllinkCheckListSo2.Text = UploadedDocument; } if (DocumentCode == "CRS") { lblLinkChkList1.Text = UploadedDocument; } //if (DocumentCode == "FT") { lbllinkFamilyTree.Text = UploadedDocument; } //if (DocumentCode == "CL") { lbllnkConcentLetter.Text = UploadedDocument; } //if (DocumentCode == "ID") { lbllnkIDDoc.Text = UploadedDocument; } } //} } else { //ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Some Required Documents not uploaded');", true); } }
private void ShowDocumentTitleSearch() { DataSet dsGetAllDocuments; dsGetAllDocuments = dbDocumentStatusData.DocumentExistInDocumentStatus(cmbVillage.SelectedValue.ToString(), cmbDocumentNo.SelectedValue.ToString(), "PTS", "SO1"); if (dsGetAllDocuments.Tables[0].Rows.Count > 0) { string UploadedDocument = dsGetAllDocuments.Tables[0].Rows[0]["documentname"].ToString(); lbllnkTS.Text = UploadedDocument; } else { lbllnkTS.Text = ""; //ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Some Required Documents not uploaded');", true); } }