public void BindPanel() { RdBValue = RdlView.SelectedValue.ToString(); if (RdBValue == "Customer") { BindCustomer(); Pnlcust.Visible = true; // pnlDetails.Visible = false; Rptrpending.Visible = true; // Panel1.Visible = false; upDocNo.Update(); RepDetailsConfirm.DataBind(); Rptrpending.DataBind(); } if (RdBValue == "All") { Pnlcust.Visible = false; // pnlDetails.Visible = false; // Panel1.Visible = true; Rptrpending.Visible = true; Rptrpending.DataSource = DCDetails.Get_DC_Completed_IsApproved(Convert.ToInt32(strFY)); Rptrpending.DataBind(); upDocNo.Update(); RepDetailsConfirm.DataBind(); } }
protected void RdlView_SelectedIndexChanged(object sender, EventArgs e) { RdBValue = RdlView.SelectedValue.ToString(); if (RdBValue == "Customer") { BindCustomer(); Pnldate.Visible = false; // pnlcity.Visible = false; Pnlcust.Visible = true; pnlDetails.Visible = false; Panelrepeater.Visible = false; Rptrpending.Visible = true; // updateapprove.Update(); // pnlconfirm.Visible = false; // DDLCustomer.Items.Insert(0, new ListItem("- Select Customer-", "0")); } if (RdBValue == "invoiceDate") { Pnldate.Visible = true; // pnlcity.Visible = false; Pnlcust.Visible = false; pnlDetails.Visible = false; Rptrpending.Visible = true; Panelrepeater.Visible = false; //updateapprove.Update(); // pnlconfirm.Visible = false; } if (RdBValue == "All") { Pnldate.Visible = false; // pnlcity.Visible = false; Pnlcust.Visible = false; Rptrpending.Visible = true; Panelrepeater.Visible = true; Rptrpending.DataSource = DCDetails.Get_DC_Completed_IsApproved(Convert.ToInt32(strFY)); Rptrpending.DataBind(); Rptrpending.Items.Insert(0, new ListItem("All", "0")); //updateapprove.Update(); // Bind_DDL_SuperZone(); // pnlconfirm.Visible = true; pnlDetails.Visible = false; } }
protected void btnPrint_Click(object sender, EventArgs e) { loder1("wait..", "4000"); ((Button)(sender)).Enabled = false; DCConfirmQtyDetails _objDCConfirmQtyDetails = new DCConfirmQtyDetails(); DCMaster _objDCMaster = new DCMaster(); try { _objDCConfirmQtyDetails.IsPrintInvoice = true; _objDCConfirmQtyDetails.CreatedBy = "admin"; _objDCConfirmQtyDetails.SubDocId = Convert.ToDecimal(((Button)(sender)).CommandArgument.Trim()); _objDCConfirmQtyDetails.AvailableQty = Convert.ToInt32(strFY); _objDCConfirmQtyDetails.Save_DC_PrintInvoiceDetails(1); // Rptrpending.DataSource = DCMaster.Get_ApprovedDocNo(); // Rptrpending.DataBind(); Rptrpending.DataSource = DCDetails.Get_DC_Completed_IsApproved(Convert.ToInt32(strFY)); Rptrpending.DataBind(); Rptrpending.Items.Insert(0, new ListItem("All", "0")); ((Button)(sender)).BackColor = System.Drawing.Color.Red; ((Button)(sender)).ForeColor = System.Drawing.Color.White; ((Button)(sender)).Enabled = true; ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "window", "f_open_window_max('print/ReportInvoicePrint.aspx?d=" + docnewno + "&sd=" + ((Button)(sender)).CommandArgument.Trim() + "')", true); } catch (Exception ex) { MessageBox(ex.Message.ToString()); ((Button)(sender)).Enabled = true; } //} }