Exemplo n.º 1
0
        protected void btnLuu_Click(object sender, EventArgs e)
        {
            string macongty = Session["congty"].ToString();
            string idphieu  = Session["maphieu"].ToString();

            db.ExecuteCommand("update pdna set GSBH='" + macongty + "',pdmemovn=N'" + CKEditorControl1.Text.ToString() + "' where pdno='" + idphieu + "'");
            Response.Redirect("frmPreviewND.aspx");
        }
Exemplo n.º 2
0
        protected void btnComplete_Click(object sender, EventArgs e)
        {
            string macongty = Session["congty"].ToString();
            string maphieu  = Session["maphieu"].ToString();
            pdna   phieu    = pnaDAO.TimVanBanTheoMa(maphieu, macongty, true);

            db.ExecuteCommand("update pdna set mytitle=N'" + txtTieuDe.Text.Trim() + "',CFMDate0=GETDATE()  where pdno='" + maphieu + "'and  GSBH='" + macongty + "'");
            Session["loaiphieu"] = phieu.Abtype.ToString();
            Response.Redirect("FrmViewCB.aspx");
        }
Exemplo n.º 3
0
        protected void btnLuu_Click(object sender, EventArgs e)
        {
            string macongty = Session["congty"].ToString();
            string idphieu  = Session["maphieu"].ToString();
            string noidung  = CKEditorControl1.Text.ToString();

            db.ExecuteCommand("update pdna set pdmemovn=N'" + CKEditorControl1.Text.ToString() + "',mytitle=N'" + txtTieuDe.Text.Trim() + "',CFMDate0=GETDATE()  where pdno='" + idphieu + "'and  GSBH='" + macongty + "'");
            // db.SuaPhieuDeNghiTT(macongty, idphieu, noidung);
            Response.Redirect("FrmView.aspx");
        }
Exemplo n.º 4
0
 public static bool CapNhatPhieuGuiBiHuy(string maphieu, string macongty)
 {
     try
     {
         int YN = 5;
         //pdna phieu = db.pdnas.Where(p => p.pdno == maphieu && p.GSBH == macongty).FirstOrDefault();
         //phieu.YN = 7;
         //phieu.pdno = maphieu;
         //phieu.GSBH = macongty;
         //db.SubmitChanges();
         //return true;
         db.ExecuteCommand("update pdna set YN='" + YN + "', dagui=0 where  pdno='" + maphieu + "' and GSBH='" + macongty + "'");
         return(true);
     }
     catch (Exception)
     {
         throw;
     }
 }