示例#1
0
        //public void HienThiDropDonVi()
        //{
        //    int Nam = int.Parse(DateTime.Today.Year.ToString());
        //    int Month = int.Parse(DateTime.Today.Month.ToString());
        //    DataTable dt = dal8Rec.QryDonViLenDropBox(Nam, Month);
        //    if (dt.Rows.Count > 0)
        //    {

        //        string ngonngu = (string)Session["languege"];
        //        if (ngonngu != null)
        //        {
        //            if (ngonngu == "lbl_VN")
        //            {
        //                DropDownDonVi.DataSource = dt;
        //                DropDownDonVi.DataValueField = "DV_MA";
        //                DropDownDonVi.DataTextField = "DV_TEN";
        //                DropDownDonVi.DataBind();
        //            }
        //            else
        //            {
        //                DropDownDonVi.DataSource = dt;
        //                DropDownDonVi.DataValueField = "DV_MA";
        //                DropDownDonVi.DataTextField = "TENDV_TAIWAN";
        //                DropDownDonVi.DataBind();
        //            }
        //        }


        //        //txtCQUserID0.Text = dt.Rows[0]["CQuserid0"].ToString();
        //        //txtCQUserID1.Text = dt.Rows[0]["CQUserid1"].ToString();

        //    }

        //}
        #endregion

        public void HienThiDropDonViERP()
        {
            DataTable dt = dal8Rec.QryDonViLenDropBoxTrenERP(Congty);

            if (dt.Rows.Count > 0)
            {
                string ngonngu = (string)Session["languege"];
                if (ngonngu != null)
                {
                    if (ngonngu == "lbl_VN")
                    {
                        DropDownDonVi.DataSource     = dt;
                        DropDownDonVi.DataValueField = "ID";
                        DropDownDonVi.DataTextField  = "DepName";
                        DropDownDonVi.DataBind();
                    }
                    else
                    {
                        DropDownDonVi.DataSource     = dt;
                        DropDownDonVi.DataValueField = "ID";
                        DropDownDonVi.DataTextField  = "DepName";
                        DropDownDonVi.DataBind();
                    }
                }


                //txtCQUserID0.Text = dt.Rows[0]["CQuserid0"].ToString();
                //txtCQUserID1.Text = dt.Rows[0]["CQUserid1"].ToString();
            }
        }
示例#2
0
        public void HienThiDonViLenDropDowslist()
        {
            DataTable dt = dalDepart.QryDonVi(Congty);

            DropDownDonVi.DataSource     = dt;
            DropDownDonVi.DataValueField = "ID";
            DropDownDonVi.DataTextField  = "DepName";
            DropDownDonVi.DataBind();
        }
示例#3
0
        public void HienThiDropDonVi()
        {
            DataTable dt = dal8Rec.LayDanhSachDonViLenDropBox(Congty);

            if (dt.Rows.Count > 0)
            {
                DropDownDonVi.DataSource     = dt;
                DropDownDonVi.DataValueField = "ID";
                DropDownDonVi.DataTextField  = "DepName";
                DropDownDonVi.DataBind();
            }
        }