コード例 #1
0
    protected void ddlPOType_SelectedIndexChanged(object sender, EventArgs e)
    {
        DataSet ds = BLL_POLOG_Register.POLOG_Get_AccountClassification(UDFLib.ConvertIntegerToNull(GetSessionUserID()), ddlPOType.SelectedValue);


        ddlAccClassifictaion.DataSource     = ds.Tables[0];
        ddlAccClassifictaion.DataTextField  = "VARIABLE_NAME";
        ddlAccClassifictaion.DataValueField = "VARIABLE_CODE";
        ddlAccClassifictaion.DataBind();
        ddlAccClassifictaion.Items.Insert(0, new ListItem("-Select-", "0"));
    }
コード例 #2
0
    private void BindAccountClassification(string PO_Type)
    {
        DataSet ds = BLL_POLOG_Register.POLOG_Get_AccountClassification(UDFLib.ConvertIntegerToNull(GetSessionUserID()), PO_Type);


        ddlAccClassifictaion.DataSource     = ds.Tables[0];
        ddlAccClassifictaion.DataTextField  = "VARIABLE_NAME";
        ddlAccClassifictaion.DataValueField = "VARIABLE_CODE";
        ddlAccClassifictaion.DataBind();
        ddlAccClassifictaion.Items.Insert(0, new ListItem("-Select-", "0"));
    }
コード例 #3
0
    public void Load_ApprovalGroup()
    {
        int     Type = 0;
        DataSet ds2  = BLL_POLOG_Register.POLOG_Get_AccountClassification(UDFLib.ConvertIntegerToNull(GetSessionUserID()), null);


        DDLGroupFilter.DataSource     = ds2.Tables[1];
        DDLGroupFilter.DataTextField  = "Approval_Group_Name";
        DDLGroupFilter.DataValueField = "Approval_Group_Code";
        DDLGroupFilter.DataBind();
        DDLGroupFilter.Items.Insert(0, new ListItem("-ALL-", "0"));
    }
コード例 #4
0
 public void BindDropDownlist()
 {
     try
     {
         DataSet ds1 = BLL_POLOG_Register.POLOG_Get_AccountClassification(UDFLib.ConvertIntegerToNull(GetSessionUserID()), ddlPOTypefilter.SelectedValue);
         ddlAccClassifictaion.DataSource     = ds1.Tables[0];
         ddlAccClassifictaion.DataTextField  = "VARIABLE_NAME";
         ddlAccClassifictaion.DataValueField = "VARIABLE_CODE";
         ddlAccClassifictaion.DataBind();
         ddlAccClassifictaion.Items.Insert(0, new ListItem("-All-", "0"));
     }
     catch { }
     {
     }
 }
コード例 #5
0
    public void BindAcct()
    {
        DataSet ds1 = BLL_POLOG_Register.POLOG_Get_AccountClassification(UDFLib.ConvertIntegerToNull(GetSessionUserID()), ddlPOType.SelectedValue);

        ddlAccClassifictaion.DataSource     = ds1.Tables[0];
        ddlAccClassifictaion.DataTextField  = "VARIABLE_NAME";
        ddlAccClassifictaion.DataValueField = "VARIABLE_CODE";
        ddlAccClassifictaion.DataBind();
        ddlAccClassifictaion.Items.Insert(0, new ListItem("-All-", "0"));


        //DataSet ds2 = BLL_POLOG_Register.POLOG_Get_AccountClassification(UDFLib.ConvertIntegerToNull(GetSessionUserID()), ddlPOType.SelectedValue);
        ddlGroupName.DataSource     = ds1.Tables[1];
        ddlGroupName.DataTextField  = "Approval_Group_Name";
        ddlGroupName.DataValueField = "Approval_Group_Code";
        ddlGroupName.DataBind();
        ddlGroupName.Items.Insert(0, new ListItem("-All-", "0"));
    }
コード例 #6
0
 void BindGroupDeatils(string GroupID)
 {
     try
     {
         //Change And Enter One Type
         int Type = 1;
         //DataSet ds = BLL_POLOG_Lib.Get_Approval_Group(GroupID, Type);
         DataSet ds = BLL_POLOG_Register.POLOG_Get_AccountClassification(UDFLib.ConvertIntegerToNull(GetSessionUserID()), null);
         if (ds.Tables[1].Rows.Count > 0)
         {
             txtApprovalGroup.Text   = ds.Tables[0].Rows[0]["Approval_Group_Name"].ToString();
             txtGroupID.Text         = ds.Tables[0].Rows[0]["Approval_Group_Code"].ToString();
             ddlPOType.SelectedValue = ds.Tables[0].Rows[0]["Req_type"].ToString();
         }
         BindDepartmentList(txtGroupID.Text, ddlPOType.SelectedValue);
     }
     catch { }
     {
     }
 }