public void GetClientstatusDashboard() { DropDownList ddl = (DropDownList)wucTaxPayerStrip.FindControl("ddlMonthYear"); PL_ClientDashboard objpl = new PL_ClientDashboard(); objpl.ind = 1; objpl.ClientCode = Convert.ToInt32(HttpContext.Current.Session["ClientCode"]); // objpl.ClientCode = 52; objpl.ClientCodeOdp = Convert.ToInt32(HttpContext.Current.Session["ClientCodeOdp"]); // objpl.ClientCodeOdp = 136; objpl.GSTIN = HttpContext.Current.Session["ClientGSTNNO"].ToString(); //objpl.GSTIN = "23CYBER1234I1ZA"; objpl.MonthInd = Convert.ToInt32(ddl.SelectedValue.ToString()); objpl.YearInd = 0; DataTable dt = new DataTable(); dt = CLSCommon.CallApiPost("api/ClientDashboard/GetClientstatusDashboard", objpl); if (dt.Rows.Count > 0) { // " Record Inserted Successfully" } else { // "Not Inserted" } }
protected void btnGetSummary_Click(object sender, EventArgs e) { divOTPSuccess.Style.Add("display", "none"); // DropDownList ddl = (DropDownList)wucTaxPayerStrip.FindControl("ddlMonthYear"); objpl = new PL_APILog(); objpl.Ind = 6; objpl.ClientCode = int.Parse(Session["ClientCode"].ToString()); objpl.ClientCodeOdp = int.Parse(Session["ClientCodeOdp"].ToString()); objpl.CaCode = int.Parse(Session["CaCode"].ToString()); objpl.CaCodeOdp = int.Parse(Session["CaCodeOdp"].ToString()); objpl.GSTNNO = Session["ClientGSTNNo"].ToString(); objpl.LogId = Convert.ToInt64(hfLogId.Value.ToString()); objpl.RecordNo = 3; objpl.MonthCD = int.Parse(Session["MonthYrCode"].ToString()); DataTable dt = CLSCommon.CallApiPost("api/GSTR2File/GetSummary", objpl); if (dt != null) { if (dt.Rows[0]["res"].ToString() == "1") { txtSummary.Text = dt.Rows[0]["Summary"].ToString(); Page.ClientScript.RegisterStartupScript(this.GetType(), "CallMyFunction", "$(document).ready(function(){$('#viewsubmit').modal('show');});", true); } else { lblSummMessage.Text = dt.Rows[0]["Error"].ToString(); } } else { lblSummMessage.Text = "Some Error Occured try Again."; } }
protected void btnSave_Click(object sender, EventArgs e) { //DropDownList ddl = (DropDownList)wucTaxPayerStrip.FindControl("ddlMonthYear"); objpl = new PL_APILog(); objpl.Ind = 5; objpl.ClientCode = int.Parse(Session["ClientCode"].ToString()); objpl.ClientCodeOdp = int.Parse(Session["ClientCodeOdp"].ToString()); objpl.CaCode = int.Parse(Session["CaCode"].ToString()); objpl.CaCodeOdp = int.Parse(Session["CaCodeOdp"].ToString()); objpl.GSTNNO = Session["ClientGSTNNo"].ToString(); objpl.LogId = Convert.ToInt64(hfLogId.Value.ToString()); objpl.RecordNo = 3; objpl.MonthCD = int.Parse(Session["MonthYrCode"].ToString()); DataTable dt = CLSCommon.CallApiPost("api/ctrlGSTR3B/SaveGSTR3B", objpl); if (dt != null) { if (dt.Rows[0]["res"].ToString() == "1") { lblGSTR3B.Text = "Data Saved To GSTIN Refrence ID " + dt.Rows[0]["referenceID"].ToString(); } else { lblGSTR3B.Text = dt.Rows[0]["Error"].ToString(); } } }
protected void btnUploadSummary_Click(object sender, EventArgs e) { objpl = new PL_APILog(); // DropDownList ddl = (DropDownList)wucTaxPayerStrip.FindControl("ddlMonthYear"); objpl.Ind = 1; // objplSigned.ReferenceId = lblreferenceId.Text; objpl.ClientCode = int.Parse(Session["ClientCode"].ToString()); objpl.ClientCodeOdp = int.Parse(Session["ClientCodeOdp"].ToString()); objpl.CaCode = int.Parse(Session["CaCode"].ToString()); objpl.CaCodeOdp = int.Parse(Session["CaCodeOdp"].ToString()); objpl.GSTNNO = Session["ClientGSTNNo"].ToString(); objpl.LogId = Convert.ToInt64(hfLogId.Value.ToString()); objpl.MonthCD = int.Parse(Session["MonthYrCode"].ToString()); DataTable dt = CLSCommon.CallApiPost("api/GSTR1File/GetSignedData", objpl); if (dt != null) { if (dt.Rows[0]["res"].ToString() == "1") { lblFileMessage.CssClass = "text-danger"; ViewState["Summary"] = dt.Rows[0]["Summary"].ToString(); // JObject obj = JObject.Parse(dt.Rows[0]["Error"].ToString()); lblFileMessage.Text = dt.Rows[0]["Message"].ToString(); } else { lblFileMessage.CssClass = "text-danger"; // JObject obj = JObject.Parse(dt.Rows[0]["Error"].ToString()); lblFileMessage.Text = dt.Rows[0]["Error"].ToString(); } } }
protected void btnUploadSummary_Click(object sender, EventArgs e) { objpl = new PL_APILog(); objpl.Ind = 1; objpl.ClientCode = int.Parse(Session["ClientCode"].ToString()); objpl.ClientCodeOdp = int.Parse(Session["ClientCodeOdp"].ToString()); objpl.CaCode = int.Parse(Session["CaCode"].ToString()); objpl.CaCodeOdp = int.Parse(Session["CaCodeOdp"].ToString()); objpl.GSTNNO = Session["ClientGSTNNo"].ToString(); objpl.LogId = Convert.ToInt64(hfLogId.Value.ToString()); objpl.MonthCD = int.Parse(Session["MonthYrCode"].ToString()); DataTable dt = CLSCommon.CallApiPost("api/GSTR2File/GetSignedData", objpl); if (dt != null) { if (dt.Rows[0]["res"].ToString() == "1") { lblFileMessage.CssClass = "text-danger"; ViewState["Summary"] = dt.Rows[0]["Summary"].ToString(); lblFileMessage.Text = dt.Rows[0]["Message"].ToString(); } else { lblFileMessage.CssClass = "text-danger"; lblFileMessage.Text = dt.Rows[0]["Error"].ToString(); } } }
protected void ddlUserLevel_SelectedIndexChanged(object sender, EventArgs e) { lblMsg.Text = ""; lblMsg.CssClass = ""; try { DataTable dt = CLSCommon.CallApiGetdt("api/MenuAllotment/FillClient_CA_Arti?Ind=2&CaCode=" + Session["CaCode"].ToString() + "&CaCodeOdp=" + Session["CaCodeOdp"].ToString() + "&UserLevel=" + ddlUserLevel.SelectedValue.ToString()); if (dt != null) { if (dt.Rows.Count > 0) { ViewState["grdData"] = null; gvData.DataSource = null; gvData.DataBind(); ddlClient_Ca_Arti.DataSource = dt; ddlClient_Ca_Arti.DataTextField = "ClientNameE"; ddlClient_Ca_Arti.DataValueField = "ClientCode"; ddlClient_Ca_Arti.DataBind(); ddlClient_Ca_Arti.Items.Insert(0, new ListItem("-- Select --", "0")); } else { ddlClient_Ca_Arti.Items.Clear(); chkListMainMenu.Items.Clear(); } } } catch { } }
void GetRecord() { DataSet ds = new DataSet(); ds = CLSCommon.CallApiGet("api/SearchReg/GetRecordByRegNo?Ind=1&RegNo=" + txtRegNo.Text); if (ds.Tables.Count > 0) { if (ds.Tables[0].Rows.Count > 0) { Session["RegNo"] = txtRegNo.Text; if (ds.Tables[0].Rows[0]["CatgoryId"].ToString() == "4") { Response.Redirect("FrmClientProfile.aspx"); } else if (ds.Tables[0].Rows[0]["CatgoryId"].ToString() == "1") { Response.Redirect("frmCAReg.aspx"); } } else { pnlError.Visible = true; lblMsg.Text = "Registration Number not found."; } } }
protected void Page_Load(object sender, EventArgs e) { CLSCommon.CommonCheckSession(); CLSCommon.ClientCheckSession(); if (!IsPostBack) { DataSet ds = CLSCommon.CallApiGet("api/TaxPayer/SearchTaxPayer?Ind=1&ClientId=" + Session["ClientCode"].ToString() + "&ClientIdOdp=" + Session["ClientCodeOdp"].ToString() + "&ClientGSTIN=" + Session["ClientGSTNNO"].ToString()); if (ds.Tables.Count > 0) { if (ds.Tables[0].Rows.Count > 0) { //lblFirmName.Text = ds.Tables[0].Rows[0]["FirmName"].ToString(); lblClientName.Text = ds.Tables[0].Rows[0]["ClientNameE"].ToString(); lblEmailId.Text = ds.Tables[0].Rows[0]["EmailId"].ToString(); lblGSTINNo.Text = ds.Tables[0].Rows[0]["GSTNNO"].ToString(); lblMobileNo.Text = ds.Tables[0].Rows[0]["ClientMobileNo1"].ToString(); Session["ClientUserID"] = ds.Tables[0].Rows[0]["ClientUserID"].ToString(); lblMonthYear.Text = Session["MonthYearDesc"].ToString(); //ddlMonthYear.DataSource = ds.Tables[1]; //ddlMonthYear.DataTextField = "MonthYearDesc"; //ddlMonthYear.DataValueField = "MonthYrCode"; //ddlMonthYear.DataBind(); } } } }
protected void btnGstr2Summary_Click(object sender, EventArgs e) { lblmsg.Text = ""; PL_GSTR2Summary obj = new PL_GSTR2Summary(); DataTable dt = new DataTable(); obj.Ind = 1; obj.CaCode = Convert.ToInt32(Session["CaCode"]); // obj.CaCode = 38; obj.CaCodeOdp = Convert.ToInt32(Session["CaCodeOdp"]); //DropDownList ddlMonthYear = (DropDownList)wucTaxPayerStrip.FindControl("ddlMonthYear"); obj.MonthCD = Convert.ToInt32(Session["MonthYrCode"].ToString()); if (Session["ClientCode"] != null && Session["ClientCodeOdp"] != null) { obj.ClientCode = Convert.ToInt32(Session["ClientCode"].ToString()); obj.ClientCodeOdp = Convert.ToInt32(Session["ClientCodeOdp"].ToString()); obj.ClientGSTIN = Session["ClientGSTNNO"].ToString(); // obj.ClientGSTIN = "33GSPTN3741G1Z9"; dt = CLSCommon.CallApiPost("api/GSTR2Summary/GetGSTR2Summary/", obj); if (dt != null) { GridGSTR2Summ.DataSource = dt; GridGSTR2Summ.DataBind(); } } else { lblmsg.Text = "Please Select Client"; } }
protected void btnSubmit_Click(object sender, EventArgs e) { // divOTPSuccess.Style.Add("display", "none"); //DropDownList ddl = (DropDownList)wucTaxPayerStrip.FindControl("ddlMonthYear"); objpl = new PL_APILog(); objpl.Ind = 1; objpl.ReferenceId = lblreferenceId.Text; objpl.ClientCode = int.Parse(Session["ClientCode"].ToString()); objpl.ClientCodeOdp = int.Parse(Session["ClientCodeOdp"].ToString()); objpl.CaCode = int.Parse(Session["CaCode"].ToString()); objpl.CaCodeOdp = int.Parse(Session["CaCodeOdp"].ToString()); objpl.GSTNNO = Session["ClientGSTNNo"].ToString(); objpl.LogId = Convert.ToInt64(hfLogId.Value.ToString()); objpl.RecordNo = 3; objpl.MonthCD = int.Parse(Session["MonthYrCode"].ToString()); tblInvoice.Visible = false; lblUploadStatus.Text = ""; btnRefresh.Visible = false; DataTable dt = CLSCommon.CallApiPost("api/GSTR2File/SubmitGSTR2", objpl); if (dt != null) { if (dt.Rows[0]["res"].ToString() == "1") { lblSubmitMsg.CssClass = "text-success"; lblSubmitMsg.Text = "Data Submitted Successfully."; } else { lblSubmitMsg.CssClass = "text-danger"; JObject obj = JObject.Parse(dt.Rows[0]["Error"].ToString()); lblSubmitMsg.Text = obj.GetValue("message").ToString(); } } }
protected void chkListMainMenu_SelectedIndexChanged(object sender, EventArgs e) { lblMsg.Text = ""; lblMsg.CssClass = ""; try { DataTable dt = CLSCommon.CallApiGetdt("api/MenuAllotment/FillSubMenu?Ind=4&MainMenuId=" + chkListMainMenu.SelectedValue); if (dt != null) { if (dt.Rows.Count > 0) { chkListSubMenu.DataSource = dt; chkListSubMenu.DataTextField = "SubMenuDesc"; chkListSubMenu.DataValueField = "SubMenuId"; chkListSubMenu.DataBind(); } else { ShowMessage("Sub Menu Are Not Available", false); chkListSubMenu.Items.Clear(); } } } catch { } }
protected void btnRefresh_Click(object sender, EventArgs e) { objpl = new PL_APILog(); objpl.Ind = 6; objpl.ReferenceId = lblreferenceId.Text; objpl.ClientCode = int.Parse(Session["ClientCode"].ToString()); objpl.ClientCodeOdp = int.Parse(Session["ClientCodeOdp"].ToString()); objpl.CaCode = int.Parse(Session["CaCode"].ToString()); objpl.CaCodeOdp = int.Parse(Session["CaCodeOdp"].ToString()); objpl.GSTNNO = Session["ClientGSTNNo"].ToString(); objpl.LogId = Convert.ToInt64(hfLogId.Value.ToString()); objpl.RecordNo = 3; objpl.MonthCD = int.Parse(Session["MonthYrCode"].ToString()); tblInvoice.Visible = false; lblUploadStatus.Text = ""; btnRefresh.Visible = false; DataTable dt = CLSCommon.CallApiPost("api/GSTR2File/TrackStatus", objpl); if (dt != null) { lblTotalInvoices.Text = dt.Rows[0]["TotalInvoice"].ToString(); if (dt.Rows[0]["res"].ToString() == "1") { divSubmit.Visible = true; divSummary.Visible = true; tblInvoice.Visible = true; btnView.Enabled = false; lblUploadStatus.Text = "Prcoess";// +dt.Rows[0]["referenceID"].ToString(); lblUploadStatus.CssClass = "text-success"; lblreferenceId.Text = dt.Rows[0]["referenceID"].ToString(); lblUploaded.Text = (int.Parse(dt.Rows[0]["TotalInvoice"].ToString())).ToString(); lblErrorInvoice.Text = "0"; } else if (dt.Rows[0]["res"].ToString() == "2") { divSubmit.Visible = true; divSummary.Visible = true; btnView.Enabled = true; lblUploaded.Text = (int.Parse(dt.Rows[0]["TotalInvoice"].ToString()) - int.Parse(dt.Rows[0]["ErrorInvoice"].ToString())).ToString(); lblErrorInvoice.Text = dt.Rows[0]["ErrorInvoice"].ToString(); lblreferenceId.Text = dt.Rows[0]["referenceID"].ToString(); tblInvoice.Visible = true; lblUploadStatus.Text = "Error";// +dt.Rows[0]["referenceID"].ToString(); lblUploadStatus.CssClass = "text-danger"; grd.DataSource = dt; grd.DataBind(); } else if (dt.Rows[0]["res"].ToString() == "3") { lblreferenceId.Text = dt.Rows[0]["referenceID"].ToString(); lblUploadStatus.Text = "In Process"; lblUploadStatus.CssClass = "text-danger"; btnRefresh.Visible = true; } else { lblUploadStatus.Text = dt.Rows[0]["Error"].ToString(); } } }
void FillDDlState() { try { DataSet ds = CLSCommon.CallApiGet("api/CARegis/FillDdlState?Ind=2"); if (ds.Tables.Count > 0) { ddlState.DataSource = ds.Tables[0]; ddlState.DataTextField = "StateDesc"; ddlState.DataValueField = "StateCode"; ddlState.DataBind(); ddlState.Items.Insert(0, new ListItem("Select", "0")); ddlConsultantType.DataSource = ds.Tables[1]; ddlConsultantType.DataValueField = "ConsultantId"; ddlConsultantType.DataTextField = "ConsultantDesc"; ddlConsultantType.DataBind(); ddlConsultantType.Items.Insert(0, new ListItem("Select", "0")); } } catch (Exception ex) { Console.WriteLine(ex); } }
protected void grdAllGstrName_RowCommand(object sender, GridViewCommandEventArgs e) { int RowIndex = 0; RowIndex = int.Parse(e.CommandArgument.ToString()); int data = int.Parse(grdAllGstrName.DataKeys[RowIndex][0].ToString()); foreach (GridViewRow grow in grdAllGstrName.Rows) { LinkButton lnkbtn1 = (LinkButton)grow.FindControl("lblGSTRName"); lnkbtn1.CssClass = "list-group-item"; } LinkButton lnkbtn = (LinkButton)grdAllGstrName.Rows[RowIndex].FindControl("lblGSTRName"); lnkbtn.CssClass = "list-group-item active"; DropDownList ddlMonthYear = (DropDownList)wucTaxPayerStrip.FindControl("ddlMonthYear"); PL_TaxPayerNew objpl = new PL_TaxPayerNew(); objpl.Ind = 1; objpl.ClientCode = int.Parse(Session["ClientCode"].ToString()); objpl.ClientCodeOdp = int.Parse(Session["ClientCodeOdp"].ToString()); objpl.ClientGSTNNO = Session["ClientGSTNNO"].ToString(); objpl.RecordNo = data.ToString(); objpl.MonthCD = ddlMonthYear.SelectedValue.ToString(); DataTable dt = CLSCommon.CallApiPost("api/TaxPayeNew/GetAllData", objpl); if (dt.Rows.Count > 0) { GridView1.DataSource = dt; GridView1.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { CLSCommon.CACheckSession(); CLSCommon.ClientCheckSession(); int recordNo = 0; if (Request.QueryString["RecordNo"] != null) { if (!Regex.IsMatch(Request.QueryString["RecordNo"].ToString(), @"^\d+$")) { Response.Redirect("frmGSTR2Summary_design.aspx"); } else { recordNo = int.Parse(Convert.ToString(Request.QueryString["RecordNo"])); } } else { Response.Redirect("frmGSTR2Summary_design.aspx"); } if (!IsPostBack) { FillGRID(recordNo); } }
protected void btnConnectTOGSTIN_Click(object sender, EventArgs e) { objpl = new PL_APILog(); objpl.Ind = 1; objpl.ActivityId = 6; objpl.ActivityDesc = "GSTR3B SAVE"; objpl.ClientCode = int.Parse(Session["ClientCode"].ToString()); objpl.ClientCodeOdp = int.Parse(Session["ClientCodeOdp"].ToString()); objpl.CaCode = int.Parse(Session["CaCode"].ToString()); objpl.CaCodeOdp = int.Parse(Session["CaCodeOdp"].ToString()); objpl.GSTNNO = Session["ClientGSTNNo"].ToString(); DataTable dt = CLSCommon.CallApiPost("api/OTPRequest/GenerateOTP", objpl); if (dt != null) { if (dt.Rows[0]["res"].ToString() == "1") { divOTP.Visible = true; lblOTPMessage.Text = "OTP Has Been Sent To your Mobile Number And EmailId Registered With GSTN.."; hfLogId.Value = dt.Rows[0]["LogId"].ToString(); } else { lblOTPMessage.Text = "Some Error Occured In Process Please Try Again.."; } } else { lblOTPMessage.Text = "Some Error Occured In Process Please Try Again.."; } Page.ClientScript.RegisterStartupScript(this.GetType(), "CallMyFunction", "$(document).ready(function(){$('#OTPModal').modal('show');});", true); }
protected void Page_Load(object sender, EventArgs e) { CLSCommon.CACheckSession(); CLSCommon.ClientCheckSession(); if (!IsPostBack) { } // DropDownList ddl1 = (DropDownList)wucTaxPayerStrip.FindControl("ddlMonthYear"); DataSet ds = CLSCommon.CallApiGet("api/GSTR3b/GetAllData?Ind=0&ClientCode=" + Session["ClientCode"].ToString() + "&ClientCodeOdp=" + Session["ClientCodeOdp"].ToString() + "&CaCode=" + Session["CaCode"].ToString() + "&CaCodeOdp=" + Session["CaCodeOdp"].ToString() + "&ClientGSTIN=" + Session["ClientGSTNNO"].ToString() + "&MonthCD=" + Session["MonthYrCode"].ToString()); grd3_1.DataSource = ds.Tables[0]; grd3_1.DataBind(); grd3_2.DataSource = ds.Tables[1]; grd3_2.DataBind(); grd4A.DataSource = ds.Tables[2]; grd4A.DataBind();; grd5.DataSource = ds.Tables[3]; grd5.DataBind(); grd6_1.DataSource = ds.Tables[4]; grd6_1.DataBind(); grd4B.DataSource = ds.Tables[5]; grd4B.DataBind(); grd4C.DataSource = ds.Tables[6]; grd4C.DataBind(); Grd4D.DataSource = ds.Tables[7]; Grd4D.DataBind(); }
public void GetClientGstStatus() { DropDownList ddl = (DropDownList)wucTaxPayerStrip.FindControl("ddlMonthYear"); objpl = new PL_TaxPayerDashboard(); objpl.ClientCode = Convert.ToInt32(Session["ClientCode"]); objpl.ClientCodeOdp = Convert.ToInt32(Session["ClientCodeOdp"]); objpl.Ind = 1; objpl.GSTIN = Session["ClientGSTNNO"].ToString().Trim(); ds = new DataSet(); ds = CLSCommon.CallApiGet("api/TaxPayerDashboard/GetClientGstStatus?Ind=1&ClientCode=" + objpl.ClientCode + "&ClientCodeOdp=" + objpl.ClientCodeOdp + "&GSTIN=" + objpl.GSTIN + "&MonthYrCode=" + ddl.SelectedValue.ToString()); if (ds == null || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0) { GridDashboard.DataSource = null; GridDashboard.DataBind(); // lblErrorMsg.Text = "Invalid login Id And Password."; } else { ViewState["DashboardStatus"] = ds.Tables[0]; GridDashboard.DataSource = ds.Tables[0]; GridDashboard.DataBind(); } }
protected void btnSendMsg_Click(object sender, EventArgs e) { lblErrorMsgEmail.Text = ""; lblErrorMsgSMS.Text = ""; CLSCommon.SendMessage(txtMobileNoMsg.Text.Trim(), txtMessageMsg.Text.Trim()); txtMessageMsg.Text = ""; }
void FillDDl() { DataSet ds = CLSCommon.CallApiGet("api/ClientProfile/FillDdl?Ind=2"); if (ds.Tables.Count > 0) { ddlState.DataSource = ds.Tables[0]; ddlState.DataTextField = "StateDesc"; ddlState.DataValueField = "StateCode"; ddlState.DataBind(); ddlState.Items.Insert(0, new ListItem("Select", "0")); ddlBussinessType.DataSource = ds.Tables[1]; ddlBussinessType.DataTextField = "BussinesTypeDesc"; ddlBussinessType.DataValueField = "BussinessTypeId"; ddlBussinessType.DataBind(); ddlBussinessType.Items.Insert(0, new ListItem("Select", "0")); ddlBussinessNature.DataSource = ds.Tables[2]; ddlBussinessNature.DataTextField = "BussinessNatureDesc"; ddlBussinessNature.DataValueField = "BussinessNatureId"; ddlBussinessNature.DataBind(); ddlBussinessNature.Items.Insert(0, new ListItem("Select", "0")); } }
protected void Page_Load(object sender, EventArgs e) { CLSCommon.CommonCheckSession(); CLSCommon.CACheckSession(); UnobtrusiveValidationMode = UnobtrusiveValidationMode.None; //if (Session["RegNo"] != null) //{ if (!IsPostBack) { //DataSet dS = new DataSet(); //dS = CLSCommon.CallApiGet("api/SearchReg/GetRecordByRegNo?Ind=1&RegNo=" + Session["RegNo"].ToString()); //if (dS.Tables.Count > 0) //{ // if (dS.Tables[0].Rows.Count > 0) // { // lblRegNo.Text = Session["RegNo"].ToString(); // txtName.Text = dS.Tables[0].Rows[0]["EnqName"].ToString(); // txtOrganisationName.Text = dS.Tables[0].Rows[0]["OrgName"].ToString(); // txtCategory.Text = dS.Tables[0].Rows[0]["EnqCatDesc"].ToString(); // txtMobileNo.Text = dS.Tables[0].Rows[0]["MobileNo"].ToString(); // txtEmailId.Text = dS.Tables[0].Rows[0]["EmailId"].ToString(); // txtPanNo.Text = dS.Tables[0].Rows[0]["PanNo"].ToString(); // } //} FillDDl(); } //} //else //{ // Response.Redirect("frmSearchReg.aspx"); //} }
void FillGrid() { DataSet ds = CLSCommon.CallApiGet("api/ViewAllClients/GetAllClients?Ind=1&CaCode=" + Session["CaCode"].ToString() + "&CaCodeOdp=" + Session["CaCodeOdp"].ToString()); grdAllClients.DataSource = ds.Tables[0]; grdAllClients.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { CLSCommon.CommonCheckSession(); CLSCommon.ClientCheckSession(); if (!IsPostBack) { } }
protected void btnSendEmail_Click(object sender, EventArgs e) { lblErrorMsgEmail.Text = ""; lblErrorMsgSMS.Text = ""; CLSCommon.SendHtmlFormattedEmail(txtMessageEmail.Text.Trim(), txtToEmail.Text.Trim(), txtSubjectEmail.Text.Trim()); txtSubjectEmail.Text = ""; txtMessageEmail.Text = ""; }
void GetAllClient() { DataSet ds = CLSCommon.CallApiGet("api/CAAllotment/GetClientAllotment?ind=1&CaCode=" + Session["CaCode"].ToString() + "&CaCodeOdp=" + Session["CaCodeOdp"].ToString()); ViewState["CaTable"] = ds.Tables[1]; grdAllClients.DataSource = ds.Tables[0]; grdAllClients.DataBind(); }
protected void btnGetB2B_Click(object sender, EventArgs e) { divOTPSuccess.Attributes.Add("class", "col-sm-12 col-xs-12 alert alert-success success"); objGSTR2A = new PL_GSTR2A(); objGSTR2A.Ind = 1; objGSTR2A.ClientCode = int.Parse(Session["ClientCode"].ToString()); objGSTR2A.ClientCodeOdp = int.Parse(Session["ClientCodeOdp"].ToString()); objGSTR2A.CaCode = int.Parse(Session["CaCode"].ToString()); objGSTR2A.CaCodeOdp = int.Parse(Session["CaCodeOdp"].ToString()); objGSTR2A.GSTNNO = Session["ClientGSTNNo"].ToString(); objGSTR2A.LogId = Convert.ToInt64(hfLogId.Value.ToString()); objGSTR2A.MonthCD = Convert.ToInt32(Session["MonthYrCode"].ToString()); divOTPSuccess.Style.Add("display", "block"); DataTable dt = CLSCommon.CallApiPost("api/GSTR2A/GetGSTR2AData", objGSTR2A); if (dt != null) { if (dt.Rows[0]["res"].ToString() == "1") { lblGSTR2AStatus.CssClass = "text-success"; DataTable dtGroupFilte = new DataTable(); ViewState["AllData"] = dt; if (rbtn_All.Checked == true) { pnlGroupFilter.Visible = false; pnlUniqe.Visible = false; PnlAlldata.Visible = true; grdGSTR2AData.DataSource = dt; grdGSTR2AData.DataBind(); } else { PnlAlldata.Visible = false; pnlGroupFilter.Visible = true; pnlUniqe.Visible = false; } if (dt.Rows.Count > 0) { dtGroupFilte = dt.DefaultView.ToTable(true, "PurchGSTIN"); GridGroupFilter.DataSource = dtGroupFilte; GridGroupFilter.DataBind(); } // ScriptManager.RegisterStartupScript(this, this.GetType(), "Pop", "ShowSummModal();", true); // Page.ClientScript.RegisterStartupScript(this.GetType(), "CallMyFunction", "$('#GSTR2AModal').modal('show');", true); // lblGSTR2AStatus.Text = dt.Rows[0]["data"].ToString(); } else { lblGSTR2AStatus.CssClass = "text-danger"; lblGSTR2AStatus.Text = dt.Rows[0]["Error"].ToString(); } } }
protected void Page_Load(object sender, EventArgs e) { CLSCommon.CACheckSession(); CLSCommon.ClientCheckSession(); if (!IsPostBack) { GetGstr2SummaryTotal(); } }
protected void btnUpload_Click(object sender, EventArgs e) { try { if (!fuExcelImport.HasFile) { Panels.Attributes.Add("class", "alert alert-danger"); lblTotalRecords.Text = "0"; lblImported.Text = "0"; Panels.Visible = true; lblMessage.Text = "Please Select Excel File."; return; } else if (Path.GetExtension(fuExcelImport.FileName) != ".xls" && Path.GetExtension(fuExcelImport.FileName) != ".xlsx" && Path.GetExtension(fuExcelImport.FileName) != ".xlsm") { Panels.Attributes.Add("class", "alert alert-danger"); lblTotalRecords.Text = "0"; lblImported.Text = "0"; Panels.Visible = true; lblMessage.Text = "Please Select Only Excel File."; return; } else { DataSet ds = CLSCommon.CallApiGet("api/GenerateExcelNo/GenerateExcelNo?Ind=1&ClientCode=" + Session["ClientCode"].ToString() + "&ClientCodeOdp=" + Session["ClientCodeOdp"].ToString() + "&ClientGSTNNO=" + Session["ClientGSTNNO"].ToString() + "&GSTRInd=1&MonthCD=" + Session["MonthYrCode"].ToString()); if (ds != null) { if (ds.Tables[0].Rows[0]["res"].ToString() == "1") { string FileName = Path.GetFileName(fuExcelImport.PostedFile.FileName); string Extension = Path.GetExtension(fuExcelImport.PostedFile.FileName); string FolderPath = "~/GSTR1Excel/"; string FilePath = Server.MapPath(FolderPath + ds.Tables[0].Rows[0]["ExcelNo"].ToString()); ExcelNo = ds.Tables[0].Rows[0]["ExcelNo"].ToString(); fuExcelImport.SaveAs(FilePath + Extension); Import_To_Grid(FilePath, Extension, ExcelNo); } else { Panels.Visible = true; Panels.Attributes.Add("class", "alert alert-warning"); lblTotalRecords.Text = "0"; lblImported.Text = "0"; lblMessage.Text = "Data Already Imported for " + Session["MonthYearDesc"].ToString(); //lnkbtn1.Visible = false; } } } } catch (Exception ex) { Panels.Attributes.Add("class", "alert alert-danger"); Panels.Visible = true; lblMessage.Text = ex.Message; Page.ClientScript.RegisterStartupScript(this.GetType(), "CallMyFunction", "$(document).ready(function(){$('#inputModal').modal('show');});", true); } }
protected void Page_Load(object sender, EventArgs e) { CLSCommon.CommonCheckSession(); CLSCommon.CACheckSession(); if (!IsPostBack) { FillGrid(); } }
protected void Page_Load(object sender, EventArgs e) { UnobtrusiveValidationMode = UnobtrusiveValidationMode.None; CLSCommon.CACheckSession(); CLSCommon.ClientCheckSession(); if (!IsPostBack) { } }