Exemplo n.º 1
0
        public void HienThiThongTin()
        {
            string    UserID  = Session["user"].ToString();
            string    congty  = Session["congty"].ToString();
            string    maphieu = Session["MaPhieu"].ToString();
            DataTable dt      = dal.LayThongTinPhieuCoYKien(UserID, congty, maphieu);

            if (dt.Rows.Count > 0)
            {
                string mytitle     = dt.Rows[0]["mytitle"].ToString();
                string pdnsubject  = dt.Rows[0]["pdnsubject"].ToString();
                string Abtype      = dt.Rows[0]["Abtype"].ToString();
                string abname      = dt.Rows[0]["abname"].ToString();
                string CFMDate0    = dt.Rows[0]["CFMDate0"].ToString();
                string CFMID1      = dt.Rows[0]["CFMID1"].ToString();
                string USERNAME    = dt.Rows[0]["USERNAME"].ToString();
                string pdmemovn    = dt.Rows[0]["pdmemovn"].ToString();
                string NoiDungDich = dt.Rows[0]["NoiDungDich"].ToString();
                string pdmemovn1   = dt.Rows[0]["pdmemovn1"].ToString();
                string IDDepart    = dt.Rows[0]["ID"].ToString();
                string DepName     = dt.Rows[0]["DepName"].ToString();
                txtNguoiChoDuyetID.Text = CFMID1;
                txtNguoiCoDUyet.Text    = USERNAME;
                txtTieuDeTW.Text        = pdnsubject;
                txtTieuDeVN.Text        = mytitle;
                CKEditorControl1.Text   = pdmemovn;
                CKEditorControl2.Text   = NoiDungDich;
                lbLoaiPhieu.Text        = abname;
                lbBoPhan.Text           = DepName;
                txtDepartID.Text        = IDDepart;
                lbSoPhieu.Text          = maphieu;

                string thang = CFMDate0.Substring(3, 2);
                string ngay  = CFMDate0.Substring(0, 2);
                string nam   = CFMDate0.Substring(6, 4);
                lbNgay.Text = "Ngày 日  " + ngay + " Tháng 月 " + thang + " Năm 年 " + nam + "";
            }
        }