protected void onPOConfirm(object source, CommandEventArgs e)
    {
        DataTable dtQuotationList = new DataTable();

        dtQuotationList.Columns.Add("Qtncode");
        dtQuotationList.Columns.Add("amount");

        string[] strIds = e.CommandArgument.ToString().Split(',');
        int      intNewQuot = 0;
        string   reqCode = strIds[0].ToString();
        string   DocumentCode = strIds[1].ToString();
        string   vesselCode = strIds[2].ToString();
        string   QuotCode = strIds[3].ToString();
        string   QuotStatus = strIds[4].ToString();
        string   DeptCode = strIds[5].ToString();
        string   strFormatSubject = "", strFormatBody = "", sToEmailAddress = "";

        string[]        Attchment    = new string[10];
        DataSet         dsEmailInfor = new DataSet();
        clsQuotationBLL objQuoBLL    = new clsQuotationBLL();

        DataRow dtrow = dtQuotationList.NewRow();

        dtrow[0] = QuotCode;
        dtrow[1] = "0";
        dtQuotationList.Rows.Add(dtrow);

        int intRet = objQuoBLL.UpdatePOConfirm(reqCode, vesselCode, DocumentCode, QuotCode, Session["SuppCode"].ToString().Trim());

        SMS.Business.PURC.BLL_PURC_Purchase objsts = new SMS.Business.PURC.BLL_PURC_Purchase();
        objsts.InsertRequisitionStageStatus(reqCode, vesselCode, DocumentCode, "UPD", " ", 1, dtQuotationList);


        BindGrid(out intNewQuot);
    }
    private bool GetSupplierConfirmation()
    {
        bool IsRequiredConfirmaion = true;

        SMS.Business.PURC.BLL_PURC_Purchase objBLLPURC = new SMS.Business.PURC.BLL_PURC_Purchase();
        //int Company_ID = Convert.ToInt32(Session["USERCOMPANYID"]);
        int Company_ID = 0;

        try
        {
            DataTable dtSupp = objBLLPURC.GET_AUTOMATIC_REQUISTION(Company_ID);
            if (dtSupp.Rows.Count > 0)
            {
                IsRequiredConfirmaion = Convert.ToBoolean(dtSupp.Rows[0]["Is_Req_Supplier_Confirm"]);
            }
        }
        catch
        {
        }
        return(IsRequiredConfirmaion);
    }