protected void Page_Load(object sender, EventArgs e) { if ((this.Session["pwalletID"] != null) && (this.Session["pwalletID"].ToString() != "")) { this.adminID = this.Session["pwalletID"].ToString(); } if (base.Request.QueryString["XXX1234445"] != null) { this.vid = base.Request.QueryString["XXX1234445"].ToString(); if (this.vid.Contains("OAI/TM/")) { this.vid = this.vid.Replace("OAI/TM/", ""); } this.Session["vid"] = vid; } else { // base.Response.Redirect("./appstatus.aspx"); } if (base.Request.QueryString["XXX94384238"] != null) { this.aid = base.Request.QueryString["XXX94384238"].ToString(); this.Session["aid"] = aid; this.xcode.Text = Request.QueryString["XXX94384238"].ToString(); } else { // base.Response.Redirect("./appstatus.aspx"); } this.serverpath = base.Server.MapPath("~/"); if (this.Session["aid"] != null) { this.xaid.Value = this.Session["aid"].ToString(); } if (this.Session["vid"] != null) { this.xvid.Value = this.Session["vid"].ToString(); } else { //base.Response.Redirect("http://www.iponigeria.com/userarea/dashboard"); } if (this.Session["amt"] != null) { this.xamt.Value = this.Session["amt"].ToString(); } if (this.Session["gt"] != null) { this.xgt.Value = this.Session["gt"].ToString(); } if (this.Session["pc"] != null) { this.xpc.Value = this.Session["pc"].ToString(); } if (this.Session["pwalletID"] != null) { this.xpwalletID.Value = this.Session["pwalletID"].ToString(); } if (this.Session["agentemail"] != null) { this.G_Agent_infoemail.Value = this.Session["agentemail"].ToString(); } if (this.Session["cname"] != null) { this.xcname.Value = this.Session["cname"].ToString(); } if (this.Session["agentpnumber"] != null) { this.G_Agent_infopnumber.Value = this.Session["agentpnumber"].ToString(); } if (this.Session["applicantname"] != null) { this.xapplicantname.Value = this.Session["applicantname"].ToString(); } if (this.Session["product_title"] != null) { this.xproduct_title.Value = this.Session["product_title"].ToString(); } if (this.Session["log_staffID"] != null) { this.log_staffID = this.Session["log_staffID"].ToString(); } if (this.Session["aid"] != null) { this.xcode.Text = this.Session["aid"].ToString(); } if (base.IsPostBack) { this.lt_state = this.t.getState(this.residence.SelectedValue); if (this.lt_state.Count == 0) { this.state_row = "1"; this.state_visible = "1"; } this.lt_rep_state = this.t.getState(this.rep_residence.SelectedValue); if (this.lt_rep_state.Count == 0) { this.rep_state_row = "1"; this.state_visible = "1"; } this.national_class_desc.Text = this.t.getNationalClassDesc((this.national_class.SelectedIndex + 1).ToString()); if (this.Session["aid"] != null) { this.xaid.Value = this.Session["aid"].ToString(); } if (this.Session["vid"] != null) { this.xvid.Value = this.Session["vid"].ToString(); } if (this.Session["amt"] != null) { this.xamt.Value = this.Session["amt"].ToString(); } if (this.Session["gt"] != null) { this.xgt.Value = this.Session["gt"].ToString(); } if (this.Session["pc"] != null) { this.xpc.Value = this.Session["pc"].ToString(); } if (this.Session["pwalletID"] != null) { this.xpwalletID.Value = this.Session["pwalletID"].ToString(); } if (this.Session["agentemail"] != null) { this.G_Agent_infoemail.Value = this.Session["agentemail"].ToString(); } if (this.Session["cname"] != null) { this.xcname.Value = this.Session["cname"].ToString(); } if (this.Session["agentpnumber"] != null) { this.G_Agent_infopnumber.Value = this.Session["agentpnumber"].ToString(); } if (this.Session["applicantname"] != null) { this.xapplicantname.Value = this.Session["applicantname"].ToString(); } if (this.Session["product_title"] != null) { this.xproduct_title.Value = this.Session["product_title"].ToString(); } } else { this.nationality.SelectedIndex = 159; this.rep_nationality.SelectedIndex = 159; this.residence.SelectedIndex = 159; this.rep_residence.SelectedIndex = 159; this.lt_nclass = this.t.getJNationalClasses(); this.national_class_desc.Text = this.lt_nclass[0].xdescription.ToString(); this.rep_xname.Text = this.xcname.Value; this.rep_xemail.Text = this.G_Agent_infoemail.Value; this.title_of_product.Text = this.xproduct_title.Value; this.rep_xtelephone.Text = this.G_Agent_infopnumber.Value; this.lt_pw = this.t.getStageByValidationID(this.vid); if (this.lt_pw.Count > 0) { this.Session["pwalletID"] = lt_pw[0].ID; this.Session["log_staffID"] = "0"; lt_app = t.getApplicantListByUserID(lt_pw[0].ID); lt_mi = t.getMarkInfoByUserID(lt_pw[0].ID); lt_aos = t.getAddressServiceListByID(lt_pw[0].ID); lt_rep = t.getRepListByUserID(lt_pw[0].ID); if (this.lt_app.Count > 0) { if ((lt_app[0].addressID != null) && (lt_app[0].addressID != "") && (lt_app[0].addressID != "0")) { lt_appaddy = t.getAddressByID(lt_app[0].addressID); } } if (this.lt_rep.Count > 0) { if ((lt_rep[0].addressID != null) && (lt_rep[0].addressID != "") && (lt_rep[0].addressID != "0")) { lt_repaddy = t.getAddressByID(lt_rep[0].addressID); } } } if (this.lt_app.Count > 0) { this.Session["lt_app"] = lt_app; this.Session["lt_appID"] = lt_app[0].ID; this.Session["ltapp_regdate"] = lt_app[0].reg_date; this.xname.Text = this.lt_app[0].xname; this.nationality.SelectedIndex = Convert.ToInt32(this.lt_app[0].nationality) - 1; if (this.lt_appaddy.Count > 0) { this.Session["lt_appaddy"] = lt_appaddy; this.Session["lt_appaddyID"] = lt_appaddy[0].ID; this.Session["ltappaddy_regdate"] = lt_appaddy[0].reg_date; this.residence.SelectedIndex = Convert.ToInt32(this.lt_appaddy[0].countryID) - 1; string stateID = this.lt_appaddy[0].stateID; if (this.residence.SelectedIndex == 0x9f) { if ((stateID != null) || (stateID != "")) { this.xselectState.SelectedIndex = Convert.ToInt32(this.lt_appaddy[0].stateID) - 1; } else { this.xselectState.SelectedIndex = 0; } this.state_row = "0"; } else { this.state_row = "1"; } this.xaddress.Text = this.lt_appaddy[0].street; this.xtelephone.Text = this.lt_appaddy[0].telephone1; this.xemail.Text = this.lt_appaddy[0].email1; } } if (this.lt_mi.Count > 0) { if (this.lt_mi.Count > 1) { for (int i = 1; i <= this.lt_mi.Count; i++) { this.xt.deleteMarkInfo(this.lt_mi[i].xID); this.lt_mi.RemoveAt(i); } } this.Session["lt_mi"] = lt_mi; this.Session["lt_miID"] = lt_mi[0].xID; this.Session["ltmi_regdate"] = lt_mi[0].reg_date; this.title_of_product.Text = this.lt_mi[0].product_title; this.nice_class_desc.Text = this.lt_mi[0].nice_class_desc; this.txt_discalimer.Text = this.lt_mi[0].disclaimer; if (this.lt_mi[0].disclaimer != "") { this.rbDisclaimer.SelectedValue = "YES"; this.disclaimer_text = "1"; } this.tmType.SelectedIndex = Convert.ToInt32(this.lt_mi[0].tm_typeID) - 1; this.logo_description.SelectedIndex = Convert.ToInt32(this.lt_mi[0].logo_descriptionID) - 1; this.national_class.SelectedIndex = Convert.ToInt32(this.lt_mi[0].national_classID) - 1; this.national_class_desc.Text = this.t.getNationalClassDesc(this.lt_mi[0].national_classID); this.xdesc_national_class = "1"; if (this.logo_description.SelectedValue != "2") { this.logo_text = "1"; } else { this.logo_text = "0"; } } if (this.lt_aos.Count > 0) { this.Session["lt_aos"] = lt_aos; this.Session["lt_aosID"] = lt_aos[0].ID; this.Session["ltaos_regdate"] = lt_aos[0].reg_date; this.aos_xselectState.SelectedIndex = Convert.ToInt32(this.lt_aos[0].stateID) - 1; this.aos_xaddress.Text = this.lt_aos[0].street; this.aos_xtelephone.Text = this.lt_aos[0].telephone1; this.aos_xemail.Text = this.lt_aos[0].email1; } if (this.lt_rep.Count > 0) { this.Session["lt_rep"] = lt_rep; this.Session["lt_repID"] = lt_rep[0].ID; this.Session["ltrep_regdate"] = lt_rep[0].reg_date; this.rep_xname.Text = this.lt_rep[0].xname; this.rep_nationality.SelectedIndex = Convert.ToInt32(this.lt_rep[0].nationality) - 1; if (this.lt_repaddy.Count > 0) { this.Session["lt_repaddy"] = lt_repaddy; this.Session["lt_repaddyID"] = lt_repaddy[0].ID; this.Session["ltrepaddy_regdate"] = lt_repaddy[0].reg_date; this.rep_residence.SelectedIndex = Convert.ToInt32(this.lt_repaddy[0].countryID) - 1; this.xselectRepState.SelectedIndex = Convert.ToInt32(this.lt_repaddy[0].stateID) - 1; this.rep_address.Text = this.lt_repaddy[0].street; this.rep_xtelephone.Text = this.lt_repaddy[0].telephone1; this.rep_xemail.Text = this.lt_repaddy[0].email1; } } } this.transID = this.Session["vid"].ToString(); this.Session["xref"] = Convert.ToInt32(this.Session["xref"]) + 1; if (this.Session["xref"].ToString() != "1") { //if (this.Session["Trademark_item"] == null) //{ // base.Response.Redirect("./violation.aspx"); //} //else //{ // Response.Redirect("./a_violation.aspx"); //} } if (((this.Session["xapplication"] != null) && (this.Session["xapplication"].ToString() != "")) && (this.transID != this.Session["xapplication"].ToString())) { //if (this.Session["Trademark_item"] == null) //{ // base.Response.Redirect("./violation.aspx"); //} //else //{ // Response.Redirect("./a_violation.aspx"); //} } this.xdesc_national_class = "1"; if (this.rbDisclaimer.SelectedValue == "YES") { this.disclaimer_text = "1"; } else { this.disclaimer_text = "0"; } if (this.logo_description.SelectedValue != "2") { this.logo_text = "1"; } else { this.logo_text = ""; } }
protected void SearchApplicant_Click(object sender, EventArgs e) { if (xref.Text != "") { if (xref.Text.Contains("OAI/TM/")) { xref.Text = xref.Text.Replace("OAI/TM/", ""); } r = xref.Text; Session["edit_transID"] = xref.Text; lt_pw = t.getStageByValidationID(xref.Text); if (lt_pw.Count > 0) { if (lt_pw[0].data_status == "Fresh" || lt_pw[0].data_status == "Valid" || lt_pw[0].data_status == "Re-conduct search" || lt_pw[0].data_status == "Search Conducted" || lt_pw[0].data_status == "Search 2 Conducted" || lt_pw[0].data_status == "Re-examine" || lt_pw[0].data_status == "Registrable" || lt_pw[0].data_status == "Published") { } else { Page.ClientScript.RegisterStartupScript(this.GetType(), "showDialogue", "showDialogue('" + "Sorry You Cannot Edit Application Status At this Stage" + "');", true); return; } pwallet_status = "RECORD EXISTS."; Session["pwID"] = lt_pw[0].ID; lt_app = t.getApplicantListByUserID(lt_pw[0].ID); if (lt_app.Count != 0) { appx_status = "RECORD EXISTS."; } lt_mi = t.getMarkInfoByUserID(lt_pw[0].ID); if (lt_mi.Count != 0) { mark_status = "RECORD EXISTS."; } lt_aos = t.getAddressServiceListByID(lt_pw[0].ID); if (lt_aos.Count != 0) { aos_status = "RECORD EXISTS."; } lt_rep = t.getRepListByUserID(lt_pw[0].ID); if (lt_rep.Count != 0) { rep_status = "RECORD EXISTS."; } if (lt_app.Count != 0) { lt_appaddy = t.getAddressListByID(lt_app[0].addressID); if (lt_appaddy.Count != 0) { appaddy_status = "RECORD EXISTS."; } } if (lt_rep.Count != 0) { lt_repaddy = t.getAddressListByID(lt_rep[0].addressID); if (lt_repaddy.Count != 0) { repaddy_status = "RECORD EXISTS."; } } if ((lt_aos.Count > 0) && (lt_app.Count > 0) && (lt_rep.Count > 0) && (lt_mi.Count > 0) && (lt_appaddy.Count > 0) && (lt_repaddy.Count > 0) && (lt_pw.Count > 0)) { //if ((lt_pw[0].stage.Trim() == "5") && (lt_pw[0].status.Trim() != "33") && (lt_pw[0].status.Trim() != "22") && (Convert.ToInt32(lt_pw[0].status.Trim()) >= 4)) //{ try { lt_office = t.getTmOfficeDetailsByID(lt_pw[0].ID); getCurrentStage(lt_office); this.lt_pw = this.t.getStageByClientIDAcc(this.xref.Text); } catch (Exception ee) { this.lt_pw = this.t.getStageByClientIDAcc(this.xref.Text); } showt = 1; //} //multiple_status = "1"; } } else { trans_status = "THE REFERENCE NUMBER DOESN'T EXIST ON THE SYSTEM"; } } else { Response.Write("<script language=JavaScript>alert('PLEASE ENTER A VALID REFERENCE NUMBER')</script>"); } }
protected void Page_Load(object sender, EventArgs e) { this.Session["vid"] = null; this.Session["amt"] = null; this.Session["aid"] = null; this.Session["gt"] = null; this.Session["pc"] = null; this.Session["agentemail"] = null; this.Session["cname"] = null; this.Session["agentpnumber"] = null; this.Session["applicantname"] = null; this.Session["product_title"] = null; this.Session["xapplication"] = null; this.Session["pwalletID"] = null; this.Session["log_staffID"] = null; this.Session["xapplication"] = null; this.Session["log_staffID"] = this.log_staffID; string serverpath = base.Server.MapPath("~/"); if (Session["Trademark_item"] == null) { this.transID = base.Request.Params["transID"]; this.amt = base.Request.Params["amt"]; this.agent = base.Request.Params["agent"]; this.xgt = base.Request.Params["xgt"]; this.cname = base.Request.Params["cname"].Replace("%26", "&"); this.agentemail = base.Request.Params["agentemail"]; this.agentpnumber = base.Request.Params["agentpnumber"]; this.applicantname = base.Request.Params["applicantname"].Replace("%26", "&"); this.product_title = base.Request.Params["product_title"].Replace("%26", "&"); } else if (Session["Trademark_item"] != null) { ti = (cld.Classes.XObjs.Trademark_item)Session["Trademark_item"]; c_pwall = ret.getPwalletByID(ti.xmemberID); c_xagt = ret.getAgentByID(c_pwall.xmemberID); this.transID = ti.transID; this.amt = ti.amt; this.agent = c_xagt.sys_ID; this.xgt = ti.xgt; this.cname = c_xagt.cname; this.agentemail = c_pwall.xemail; this.agentpnumber = c_pwall.xmobile; this.applicantname = ti.applicant_name; this.product_title = ti.product_title; } if (((((this.transID != "") && (this.amt != "")) && ((this.agent != "") && (this.xgt != ""))) && (((this.cname != "") && (this.agentemail != "")) && ((this.agentpnumber != "") && (this.applicantname != "")))) && (this.product_title != "")) { if (this.Session["xapplication"] != null) { this.xapplication = this.Session["xapplication"].ToString(); if (this.xapplication != this.transID) { if (this.Session["Trademark_item"] == null) { base.Response.Redirect("./violation.aspx"); } else { Response.Redirect("./a_violation.aspx"); } } } else { this.Session["xapplication"] = this.transID; } this.Session["vid"] = this.transID; this.Session["amt"] = this.amt; this.Session["aid"] = this.agent; this.Session["gt"] = this.xgt; this.Session["agentemail"] = this.agentemail; this.Session["cname"] = this.cname; this.Session["agentpnumber"] = this.agentpnumber; this.Session["applicantname"] = this.applicantname; this.Session["product_title"] = this.product_title; tm.Stage s = this.t.getStatusIDByvalidationID(this.transID.Trim()); lt_app = t.getApplicantListByUserID(s.ID); lt_mi = t.getMarkInfoByUserID(s.ID); lt_aos = t.getAddressServiceListByID(s.ID); lt_rep = t.getRepListByUserID(s.ID); if (this.lt_app.Count > 0) { if ((lt_app[0].addressID != null) && (lt_app[0].addressID != "") && (lt_app[0].addressID != "0")) { lt_appaddy = t.getAddressByID(lt_app[0].addressID); } } if (this.lt_rep.Count > 0) { if ((lt_rep[0].addressID != null) && (lt_rep[0].addressID != "") && (lt_rep[0].addressID != "0")) { lt_repaddy = t.getAddressByID(lt_rep[0].addressID); } } if (this.lt_mi.Count > 0) { if ((lt_mi[0].logo_descriptionID != "2") && (lt_mi[0].logo_pic == "")) { islogopic = false; } } if (Convert.ToInt32(s.status) > 1) { this.status = this.t.updateIpoApplicationReferenceStatus(this.transID, this.xgt, "1"); Response.Redirect("./xreturn.aspx"); } else if (Convert.ToInt32(s.status) == 1) { if ((lt_app.Count == 0) || (lt_aos.Count == 0) || (lt_rep.Count == 0) || (lt_mi.Count == 0) || (lt_appaddy.Count == 0) || (lt_repaddy.Count == 0)) { Response.Redirect("./xrefill.aspx"); } else { if (islogopic == false)//Trademark is missing { Response.Redirect("./xrefill.aspx"); } else { Response.Redirect("./xreturn.aspx"); } } } else if ((Convert.ToInt32(s.status) == 0) || (s.status == null) || (s.status == "")) { this.pwalletID = this.t.addPwallet(this.transID, this.agent, this.amt, this.log_staffID); if (this.pwalletID != "0") { this.Session["pwalletID"] = this.pwalletID; } } } else { if (this.Session["Trademark_item"] == null) { base.Response.Redirect("http://www.iponigeria.com/userarea/dashboard"); } else { // Response.Redirect("./XPay/A/profile.aspx"); } } }
protected void SearchApplicant_Click(object sender, EventArgs e) { if (xref.Text != "") { if (xref.Text.Contains("OAI/TM/")) { xref.Text = xref.Text.Replace("OAI/TM/", ""); } r = xref.Text; Session["edit_transID"] = xref.Text; lt_pw = t.getStageByValidationID(xref.Text); if (lt_pw.Count > 0) { pwallet_status = "RECORD EXISTS."; Session["pwID"] = lt_pw[0].ID; lt_app = t.getApplicantListByUserID(lt_pw[0].ID); if (lt_app.Count != 0) { appx_status = "RECORD EXISTS."; } lt_mi = t.getMarkInfoByUserID(lt_pw[0].ID); if (lt_mi.Count != 0) { mark_status = "RECORD EXISTS."; } lt_aos = t.getAddressServiceListByID(lt_pw[0].ID); if (lt_aos.Count != 0) { aos_status = "RECORD EXISTS."; } lt_rep = t.getRepListByUserID(lt_pw[0].ID); if (lt_rep.Count != 0) { rep_status = "RECORD EXISTS."; } if (lt_app.Count != 0) { lt_appaddy = t.getAddressListByID(lt_app[0].addressID); if (lt_appaddy.Count != 0) { appaddy_status = "RECORD EXISTS."; } } if (lt_rep.Count != 0) { lt_repaddy = t.getAddressListByID(lt_rep[0].addressID); if (lt_repaddy.Count != 0) { repaddy_status = "RECORD EXISTS."; } } if ((lt_aos.Count > 0) && (lt_app.Count > 0) && (lt_rep.Count > 0) && (lt_mi.Count > 0) && (lt_appaddy.Count > 0) && (lt_repaddy.Count > 0) && (lt_pw.Count > 0)) { if ((lt_pw[0].stage.Trim() == "5") && (lt_pw[0].status.Trim() != "33") && (lt_pw[0].status.Trim() != "22") && (Convert.ToInt32(lt_pw[0].status.Trim()) >= 4)) { lt_office = t.getTmOfficeDetailsByID(lt_pw[0].ID); getCurrentStage(lt_office); showt = 1; } //multiple_status = "1"; } } else { trans_status = "THE REFERENCE NUMBER DOESN'T EXIST ON THE SYSTEM"; } } else { Response.Write("<script language=JavaScript>alert('PLEASE ENTER A VALID REFERENCE NUMBER')</script>"); } }
protected void Save_Click(object sender, EventArgs e) { if (this.xref.Text != "") { if (this.xref.Text.Contains("OAI/TM/")) { this.xref.Text = this.xref.Text.Replace("OAI/TM/", ""); } this.r = this.xref.Text; Session["edit_transID"] = xref.Text; multiple_succ_status = Session["edit_transID"].ToString(); this.lt_pw = this.t.getStageByValidationID(this.xref.Text); if (this.lt_pw.Count != 0) { pwallet_status = "RECORD EXISTS."; lt_app = t.getApplicantListByUserID(lt_pw[0].ID); if (this.lt_app.Count != 0) { appx_status = "RECORD EXISTS."; } lt_mi = t.getMarkInfoByUserID(lt_pw[0].ID); if (this.lt_mi.Count != 0) { mark_status = "RECORD EXISTS."; } lt_aos = t.getAddressServiceListByID(lt_pw[0].ID); if (this.lt_aos.Count != 0) { aos_status = "RECORD EXISTS."; } lt_rep = t.getRepListByUserID(lt_pw[0].ID); if (this.lt_rep.Count != 0) { rep_status = "RECORD EXISTS."; } if (this.lt_app.Count != 0) { lt_appaddy = t.getAddressListByID(lt_app[0].addressID); if (this.lt_appaddy.Count != 0) { appaddy_status = "RECORD EXISTS."; } } if (this.lt_rep.Count != 0) { lt_repaddy = t.getAddressListByID(lt_rep[0].addressID); if (this.lt_repaddy.Count != 0) { repaddy_status = "RECORD EXISTS."; } } if ((lt_aos.Count > 1) || (lt_app.Count > 1) || (lt_rep.Count > 1) || (lt_mi.Count > 1) || (lt_appaddy.Count > 1) || (lt_repaddy.Count > 1) || (lt_pw.Count > 1)) { multiple_status = "1"; } this.showt = 1; } else { trans_status = "THE REFERENCE NUMBER DOESN'T EXIST ON THE SYSTEM"; } } else { Response.Write("<script language=JavaScript>alert('PLEASE ENTER A VALID REFERENCE NUMBER')</script>"); } }
protected void Save_Click(object sender, EventArgs e) { if (this.xref.Text != "") { if (this.xref.Text.Contains("OAI/TM/")) { this.xref.Text = this.xref.Text.Replace("OAI/TM/", ""); } this.r = this.xref.Text; this.lt_pwx = this.t.getStageByUserIDAcc(this.xref.Text, this.agt); if (this.lt_pwx.Count > 0) { Session["app_no"] = "OAI/TM/" + lt_pwx[0].validationID; tm.Stage s = this.t.getStatusIDByvalidationID(this.xref.Text.Trim()); this.showt = 1; lt_appx = t.getApplicantListByUserID(s.ID); lt_mix = t.getMarkInfoByUserID(s.ID); lt_aosx = t.getAddressServiceListByID(s.ID); lt_repx = t.getRepListByUserID(s.ID); if (this.lt_appx.Count > 0) { if ((lt_appx[0].addressID != null) && (lt_appx[0].addressID != "") && (lt_appx[0].addressID != "0")) { lt_appaddyx = t.getAddressByID(lt_appx[0].addressID); if (lt_appaddyx.Count > 0) { Session["app_email"] = lt_appaddyx[0].email1; } } } if (this.lt_repx.Count > 0) { Session["fullname"] = lt_repx[0].xname; if ((lt_repx[0].addressID != null) && (lt_repx[0].addressID != "") && (lt_repx[0].addressID != "0")) { lt_repaddyx = t.getAddressByID(lt_repx[0].addressID); if (lt_appaddyx.Count > 0) { Session["rep_email"] = lt_repaddyx[0].email1; } } } if (this.lt_mix.Count > 0) { if ((lt_mix[0].logo_descriptionID != "2") && (lt_mix[0].logo_pic == "")) { islogopic = false; } } if ((Convert.ToInt32(s.status) == 1) && (lt_appx.Count == 1) && (lt_mix.Count == 1) && (lt_aosx.Count == 1) && (lt_repx.Count == 1) && (lt_appaddyx.Count == 1) && (lt_repaddyx.Count == 1) ) { if (lt_mix[0].logo_descriptionID != "2") { if (lt_mix[0].logo_pic != "") { refill = 0; showStatus(lt_pwx); } else { status = "Filing"; data_status = "Uncompleted"; refill = 1; } } else { refill = 0; showStatus(lt_pwx); } } else if ((Convert.ToInt32(s.status) == 1) && ((lt_appx.Count != 1) || (lt_mix.Count != 1) || (lt_aosx.Count != 1) || (lt_repx.Count != 1) || (lt_appaddyx.Count != 1) || (lt_repaddyx.Count != 1) )) { status = "Filing"; data_status = "Uncompleted"; refill = 1; } else if (Convert.ToInt32(s.status) > 1) { refill = 0; showStatus(lt_pwx); } } } else { base.Response.Write("<script language=JavaScript>alert('PLEASE ENTER A VALID REFERENCE NUMBER')</script>"); } }