예제 #1
0
    protected void lnkEBIN_Click(object sender, EventArgs e)
    {
        C1GridViewRow parent = ((LinkButton)sender).Parent.Parent as C1GridViewRow;
        LinkButton    button = (LinkButton)parent.FindControl("lnkEBIN");
        string        str    = parent.Cells[4].Text.Trim();
        Label         label  = (Label)parent.FindControl("lblUnit");

        this._dlinventory.EbinRpt(int.Parse(button.CommandArgument));
        this.Session["Param"]   = "EBIN";
        this.Session["itm"]     = str;
        this.Session["Unit"]    = label.Text.Trim();
        this.Session["Itmcode"] = button.CommandArgument;
        this.runjQueryCode("window.open('Smt_Inv_ReportDisplay.aspx','popup','location=1,status=1,left=0,top=0,scrollbars=1,width=970,height=600')");
    }
예제 #2
0
    protected void lnkIssue_Click(object sender, EventArgs e)
    {
        C1GridViewRow parent = ((LinkButton)sender).Parent.Parent as C1GridViewRow;
        LinkButton    button = (LinkButton)parent.FindControl("lnkIssue");

        this.Session["Itmcode"] = button.CommandArgument;
        this.runjQueryCode("window.open('Smt_Inv_ItemtrackingIssue.aspx','popup','location=1,status=1,left=100,top=100,scrollbars=1,width=820,height=480')");
    }
    protected void btnViewRevised_Click(object sender, System.EventArgs e)
    {
        this.grdDisPODtl.DataSource = null;
        this.grdDisPODtl.DataBind();
        C1GridViewRow parent = ((LinkButton)sender).Parent.Parent as C1GridViewRow;
        LinkButton    button = (LinkButton)parent.FindControl("btnViewRevised");

        this.viewPODtl(int.Parse(button.CommandArgument));
    }
    protected void btnPrintRevised_Click(object sender, System.EventArgs e)
    {
        C1GridViewRow parent = ((LinkButton)sender).Parent.Parent as C1GridViewRow;
        LinkButton    button = (LinkButton)parent.FindControl("btnPrintRevised");

        this.Session["pono"]  = button.CommandArgument;
        this.Session["Param"] = "PONO";
        this.runjQueryCode("window.open('Report_Merchandising/Smt_MerchandisingReport.aspx','popup','location=1,status=1,left=0,top=0,scrollbars=1,width=970,height=600')");
    }
    protected void btnEmail_Click(object sender, System.EventArgs e)
    {
        Label         label   = (Label)base.Master.FindControl("lbltotalinfo");
        C1GridViewRow parent  = ((LinkButton)sender).Parent.Parent as C1GridViewRow;
        LinkButton    button1 = (LinkButton)parent.FindControl("btnEmail");
        Label         label2  = (Label)parent.FindControl("lblSupplierID");
        Label         label3  = (Label)parent.FindControl("lblPO");

        try
        {
            this.Sentmail_supplier(int.Parse(label3.Text), int.Parse(label2.Text));
            label.Text = ("Success");
        }
        catch (System.Exception exception)
        {
            label.Text = (exception.Message);
        }
    }
예제 #6
0
    protected void lnkprintrevised_Click(object sender, EventArgs e)
    {
        C1GridViewRow parent = ((LinkButton)sender).Parent.Parent as C1GridViewRow;
        LinkButton    button = (LinkButton)parent.FindControl("lnkprintrevised");

        this.Session["GRNNO"] = button.CommandArgument;
        this.Session["Param"] = "GRNNO";
        this.runjQueryCode("window.open('Smt_Inv_ReportDisplay.aspx','popup','location=1,status=1,left=0,top=0,scrollbars=1,width=970,height=600')");
    }
예제 #7
0
    protected void btnPrintpoconfirm_Click(object sender, EventArgs e)
    {
        Label label = (Label)base.Master.FindControl("lbltotalinfo");

        label.Text = "";
        C1GridViewRow parent = ((LinkButton)sender).Parent.Parent as C1GridViewRow;
        Label         label2 = (Label)parent.FindControl("lblPONO");

        this.Session["Param"] = "PONO";
        this.Session["pono"]  = label2.Text.Trim();
        this.runjQueryCode("window.open('Report_Merchandising/Smt_MerchandisingReport.aspx','popup','location=1,status=1,left=0,top=0,scrollbars=1,width=970,height=600')");
    }
    protected void btnPrintpoconfirm_Click(object sender, EventArgs e)
    {
        Label label = (Label)base.Master.FindControl("lbltotalinfo");

        label.Text = "";
        C1GridViewRow parent = ((Button)sender).Parent.Parent as C1GridViewRow;
        Label         label2 = (Label)parent.FindControl("lblIssueNo");

        this.Session["Param"]    = "FR";
        this.Session["IssueNID"] = label2.Text.Trim();
        this.runjQueryCode("window.open('Smt_Inv_ReportDisplay.aspx','popup','location=1,status=1,left=0,top=0,scrollbars=1,width=970,height=600')");
    }
예제 #9
0
        protected override void CreateHeaderTemplate(C1GridViewRow row)
        {
            if (row == null)
            {
                return;
            }

            var chk = row.FindControl("chkSelectAll") as CheckBox;

            if (chk == null)
            {
                GridUtils.GetCell(row, ReferenciaGeograficaVo.IndexCheck).Controls.Add(chk = new CheckBox {
                    ID = "chkSelectAll", AutoPostBack = true
                });
            }
            chk.CheckedChanged += ChkSelectAllCheckedChanged;
        }
예제 #10
0
    protected void Editpo(object sender, EventArgs e)
    {
        this.lblrowindx.Text = "";
        C1GridViewRow parent = ((LinkButton)sender).Parent.Parent as C1GridViewRow;
        LinkButton    button = (LinkButton)parent.FindControl("btnEdit");
        DataTable     table  = this.blInventory.get_InformationdataTable("Sp_Smt_Poheader_Viewpodtl " + button.CommandArgument);

        this.drpSupplier.SelectedValue   = table.Rows[0]["nSuplierID"].ToString();
        this.drpOrderType.SelectedValue  = table.Rows[0]["nOrderType"].ToString();
        this.txtAttention.Text           = table.Rows[0]["cAtt"].ToString();
        this.drpDeliveryTo.SelectedValue = table.Rows[0]["Company_ID"].ToString();
        this.drpPIIssue.SelectedValue    = table.Rows[0]["nIssueTo"].ToString();
        this.txtCreditDays.Text          = table.Rows[0]["cCredtDay"].ToString();
        this.txtDeliverydt.Text          = table.Rows[0]["dDelevey"].ToString();
        this.txtRemarks.Text             = table.Rows[0]["cRemark"].ToString();
        this.txtPOno.Text = button.CommandArgument;
        this.drpCurrencytype.SelectedValue = table.Rows[0]["cCurType"].ToString();
        if (!string.IsNullOrEmpty(this.drpSupplier.SelectedValue))
        {
            this.drpMainCat.DataSource     = this.blInventory.get_Informationdataset("Sp_POOtherBooking_GetMainCat " + this.drpSupplier.SelectedValue);
            this.drpMainCat.DataTextField  = "cMainCategory";
            this.drpMainCat.DataValueField = "nMainCategory_ID";
            this.drpMainCat.DataBind();
            this.drpMainCat.Items.Insert(0, new ListItem(string.Empty, string.Empty));
            this.drpMainCat.SelectedIndex = 0;
            this.drpMainCat.Enabled       = true;
            DataTable table2 = this.blInventory.get_InformationdataTable("select cAtt from Smt_Suppliers where nCode='" + this.drpSupplier.SelectedValue + "'");
            this.txtAttention.Text = table2.Rows[0]["cAtt"].ToString();
        }
        DataTable table3 = this.blInventory.get_InformationdataTable("Sp_Smt_PoDetails_Viewpodtl " + button.CommandArgument);

        this.grdBookingDtl.DataSource = table3;
        this.grdBookingDtl.DataBind();
        this.ViewState["CurrentData"] = table3;
        this.C1TabControl1.MoveFirst();
    }