コード例 #1
0
    private void PoDetails(Int64 id)
    {
        DataTable ds = new DataTable();

        ds = ClsPurchaseInvoice.Get_PurchaseOrderForInvoice(id);
        GvwSaleseOrderDetails.DataSource = ds;
        GvwSaleseOrderDetails.DataBind();
    }
コード例 #2
0
    private void SoDetails(Int64 id)
    {
        DataTable ds = new DataTable();

        ds = ClsSalesRegister.Get_SalesOrderforApproval(id);
        GvwSaleseOrderDetails.DataSource = ds;
        GvwSaleseOrderDetails.DataBind();
    }
コード例 #3
0
    private void SoDetails(Int64 id)
    {
        DataTable ds = new DataTable();

        ds = ClsSalesManagerChecking.Get_SoDetailsFor_MaterialDispatch(id);
        GvwSaleseOrderDetails.DataSource = ds;
        GvwSaleseOrderDetails.DataBind();
    }
コード例 #4
0
    private void SoDetails(Int64 id)
    {
        DataTable ds = new DataTable();

        ds = ClsSalesManagerChecking.Get_SalesOrderforApproval(id);
        GvwSaleseOrderDetails.DataSource = ds;
        GvwSaleseOrderDetails.DataBind();
        for (int i = 0; i < ds.Rows.Count; i++)
        {
            if (ds.Rows.Count > 0)
            {
                GvwSaleseOrderDetails.Rows[i].Cells[3].BackColor = System.Drawing.Color.Yellow;
            }
        }
    }
コード例 #5
0
    private void GetSalesManager()
    {
        DataTable ds = new DataTable();

        try
        {
            ds = ClsPurchaseInvoice.Get_PurchaseOrderForInvoice(value);
            GvwSaleseOrderDetails.DataSource = ds;
            GvwSaleseOrderDetails.DataBind();
            ViewState["Data"] = ds;
            ds.Dispose();
            if (ViewState["PageINdex"] != null)
            {
                GvwSaleseOrderDetails.PageIndex = Convert.ToInt32(ViewState["PageINdex"].ToString());
            }
        }
        catch (Exception ex)
        {
        }
    }
コード例 #6
0
    private void LoadGridDetails()
    {
        DataTable DtDetails = new DataTable();

        try
        {
            DtDetails = ClsMaster.Get_Salesdetails(value);
            int    count = DtDetails.Rows.Count;
            double total = Convert.ToDouble(DtDetails.Rows[count - 1]["SO_TotalPrice"].ToString());
            lblTotalinrs.Text = lblTotalinrs.Text + AmountInWords(Convert.ToDecimal(total));
            GvwSaleseOrderDetails.DataSource = DtDetails;
            GvwSaleseOrderDetails.DataBind();
            ViewState["Data"] = DtDetails;
            DtDetails.Dispose();
            if (ViewState["PageINdex"] != null)
            {
                GvwSaleseOrderDetails.PageIndex = Convert.ToInt32(ViewState["PageINdex"].ToString());
            }
            //CreateTax();
        }
        catch (Exception ex)
        {
        }
    }