예제 #1
0
        private void BindddNazar()
        {
            DataSet ds = CatalogClass.GetListTypeID("11");

            ddnazar.DataSource     = ds;
            ddnazar.DataTextField  = "CatalogName";
            ddnazar.DataValueField = "CatalogValue";
            ddnazar.DataBind();


            ddRequestStatus.DataSource     = ds;
            ddRequestStatus.DataTextField  = "CatalogName";
            ddRequestStatus.DataValueField = "CatalogValue";
            ddRequestStatus.DataBind();
            ddRequestStatus.Items.Insert(0, new ListItem("همه موارد", "-1"));
            ddRequestStatus.Items.Insert(1, new ListItem("پرداخت شده", "-2"));

            ClCompany cl = new ClCompany();

            ddcompany.DataSource     = CompanyClass.GetList(cl);
            ddcompany.DataTextField  = "CompanyName";
            ddcompany.DataValueField = "CompanyID";
            ddcompany.DataBind();
            ddcompany.Items.Insert(0, new ListItem("بدون انتخاب", "0"));


            ds.Dispose();
        }
예제 #2
0
        public void BindDD()
        {
            ClCompany cl = new ClCompany();
            DataSet   ds = CompanyClass.GetList(new ClCompany());

            ddCompany.DataSource     = ds;
            ddCompany.DataTextField  = "CompanyName";
            ddCompany.DataValueField = "CompanyID";
            ddCompany.DataBind();
        }
예제 #3
0
        public void BindDD()
        {
            ClCompany cl = new ClCompany();

            DDCompanyID.DataSource     = CompanyClass.GetList(cl);
            DDCompanyID.DataTextField  = "CompanyName";
            DDCompanyID.DataValueField = "CompanyID";
            DDCompanyID.DataBind();
            DDCompanyID.Items.Insert(0, new ListItem("", "0"));

            //DDDiscountTypeID.DataSource = CatalogClass.GetListDiscountType();
            //DDDiscountTypeID.DataTextField = "CatalogName";
            //DDDiscountTypeID.DataValueField = "caid";
            //DDDiscountTypeID.DataBind();
        }
예제 #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (Request.QueryString["cname"] == null)
         {
             ClCompany cl = new ClCompany();
             cl.companyID = Convert.ToInt32(Request.QueryString["cid"]);
             DataSet ds = CompanyClass.GetList(cl);
             DataRow dr = ds.Tables[0].Rows[0];
             lblCompanyName.Text = dr[""].ToString();
         }
         lblCompanyName.Text = Request.QueryString["cname"].ToString();
     }
     catch { }
 }
예제 #5
0
        public void BindGrid()
        {
            ClCompany cl = new ClCompany();

            cl = Data;

            DataSet  ds = CompanyClass.GetList(cl);
            DataView dv = new DataView(ds.Tables[0]);

            if (ViewState["CompanyID"] == null)
            {
                ViewState["CompanyID"] = "CompanyID Desc";
            }
            dv.Sort = ViewState["CompanyID"].ToString();
            GridView1.DataSource = dv;
            GridView1.DataBind();
        }