Exemplo n.º 1
0
 internal void displayForUpdate(IPCOREUS.US_GD_DAT_HANG v_us)
 {
     m_e_form_mode = DataEntryFormMode.UpdateDataState;
     m_us = v_us;
     us_to_form(v_us);
     this.ShowDialog();
 }
 private void m_cmd_TM_cap_nhat_xu_ly_Click(object sender, EventArgs e)
 {
     f101_cap_nhat_xu_don_hang v_f = new f101_cap_nhat_xu_don_hang();
     DataRow v_dr = m_grv_ds_don_dat_hang_can_nghiem_thu.GetDataRow(m_grv_ds_don_dat_hang_can_nghiem_thu.FocusedRowHandle);
     US_GD_DAT_HANG v_us = new US_GD_DAT_HANG(CIPConvert.ToDecimal(v_dr["ID"].ToString()));
     v_f.Display_for_update(v_us);
     load_data_to_grid();
 }
Exemplo n.º 3
0
 private void ghi_log_nghiem_thu_don_hang_chua_hoan_thanh(US_GD_DAT_HANG v_us)
 {
     US_GD_LOG_DAT_HANG v_US = new US_GD_LOG_DAT_HANG();
     v_US.dcID_GD_DAT_HANG = v_us.dcID;
     v_US.dcID_LOAI_THAO_TAC = 313;//cần xử lý lại
     v_US.dcID_NGUOI_TAO_THAO_TAC = us_user.dcID;
     v_US.dcID_NGUOI_NHAN_THAO_TAC = v_us.dcID_NGUOI_TAO;
     v_US.datNGAY_LAP_THAO_TAC = System.DateTime.Now;
     v_US.strTHAO_TAC_HET_HAN_YN = "N";
     v_US.strGHI_CHU = "đơn hàng cần được thực hiện lại! TM chưa chấp nhận nghiệm thu!";
     v_US.Insert();
 }
 private void ghi_log_gui_cho_pm(US_GD_DAT_HANG v_us)
 {
     US_GD_LOG_DAT_HANG v_US = new US_GD_LOG_DAT_HANG();
     v_US.dcID_LOAI_THAO_TAC = 174;
     v_US.dcID_GD_DAT_HANG = v_us.dcID;
     v_US.dcID_NGUOI_TAO_THAO_TAC = 69763;
     v_US.dcID_NGUOI_NHAN_THAO_TAC = 69762;
     v_US.datNGAY_LAP_THAO_TAC = System.DateTime.Now;
     v_US.strTHAO_TAC_HET_HAN_YN = "N";
     v_US.strGHI_CHU = "đơn hàng được gửi cho PM";
     v_US.Insert();
 }
        private void load_data_2_form(IPCOREUS.US_GD_DAT_HANG v_us)
        {
            US_V_GD_DAT_HANG v_us_v_gd_dat_hang = new US_V_GD_DAT_HANG(v_us.dcID);

            m_txt_ma_don_hang.Text             = v_us_v_gd_dat_hang.strMA_DON_HANG;
            m_txt_user_dat_hang.Text           = v_us_v_gd_dat_hang.strHO_TEN_USER_DAT_HANG;
            m_txt_dien_thoai.Text              = v_us_v_gd_dat_hang.strDIEN_THOAI;
            m_txt_don_vi.Text                  = v_us_v_gd_dat_hang.strMA_DON_VI;
            m_txt_chi_nhanh.Text               = v_us_v_gd_dat_hang.strTEN_CHI_NHANH;
            m_txt_dich_vu_yeu_cau.Text         = v_us_v_gd_dat_hang.strTEN_YEU_CAU;
            m_txt_noi_dung_yeu_cau_cu_the.Text = v_us_v_gd_dat_hang.strNOI_DUNG_DAT_HANG;
        }
 private void DoRowDoubleClick(GridView view, Point pt)
 {
     GridHitInfo info = view.CalcHitInfo(pt);
     if (info.InRow || info.InRowCell)
     {
         DataRow v_dr = m_grv_ds_don_hang_dang_xu_ly.GetDataRow(m_grv_ds_don_hang_dang_xu_ly.FocusedRowHandle);
         US_GD_DAT_HANG v_us = new US_GD_DAT_HANG(CIPConvert.ToDecimal(v_dr["ID"].ToString()));
         f100_don_dat_hang_new v_f100 = new f100_don_dat_hang_new();
         v_f100.displayForUpdate2(v_us);
         this.Show();
     }
 }
Exemplo n.º 7
0
 private void ghi_log_nghiem_thu_don_hang(US_GD_DAT_HANG v_us)
 {
     US_GD_LOG_DAT_HANG v_US = new US_GD_LOG_DAT_HANG();
     v_US.dcID_GD_DAT_HANG = v_us.dcID;
     v_US.dcID_LOAI_THAO_TAC = 309;//TM đã nghiệm thu
     v_US.dcID_NGUOI_TAO_THAO_TAC = us_user.dcID;
     v_US.SetID_NGUOI_NHAN_THAO_TACNull();
     v_US.datNGAY_LAP_THAO_TAC = System.DateTime.Now;
     v_US.strTHAO_TAC_HET_HAN_YN = "N";
     v_US.strGHI_CHU = us_user.strTEN_TRUY_CAP + " đã nghiệm thu đơn hàng";
     v_US.Insert();
 }
 private void m_cmd_chinh_sua_don_hang_Click(object sender, EventArgs e)
 {
     try
     {
         DataRow v_dr = m_grv_ds_don_dat_hang.GetDataRow(m_grv_ds_don_dat_hang.FocusedRowHandle);
         US_GD_DAT_HANG v_us = new US_GD_DAT_HANG(CIPConvert.ToDecimal(v_dr["ID"].ToString()));
         f100_don_dat_hang_new v_f100 = new f100_don_dat_hang_new();
         v_f100.displayForUpdate(v_us, v_deadline);
         load_data_2_grid();
     }
     catch (Exception v_e)
     {
         CSystemLog_301.ExceptionHandle(v_e);
     }
 }
        internal void display_for_refurse_dealine(decimal deadline_id)
        {
            try
            {
                DataRow v_dr = m_grv_ds_don_dat_hang.GetDataRow(m_grv_ds_don_dat_hang.FocusedRowHandle);
                m_us = new US_GD_DAT_HANG(CIPConvert.ToDecimal(v_dr["ID"].ToString()));
                this.Show();
                v_deadline = deadline_id;
                load_data_2_grid();

            }
            catch (Exception v_e)
            {
                CSystemLog_301.ExceptionHandle(v_e);
            }
        }
        private void m_cmd_TM_huy_hon_hang_Click(object sender, EventArgs e)
        {
            try
            {

                DataRow v_dr = m_grv_ds_don_dat_hang_can_nghiem_thu.GetDataRow(m_grv_ds_don_dat_hang_can_nghiem_thu.FocusedRowHandle);
                m_us = new US_GD_DAT_HANG(CIPConvert.ToDecimal(v_dr["ID"].ToString()));
                f103_TD_ly_do_tu_choi f103 = new f103_TD_ly_do_tu_choi();
                f103.Display(m_us);
                load_data_to_grid();
            }
            catch (Exception v_e)
            {
                CSystemLog_301.ExceptionHandle(v_e);
            }
        }
        private void m_cmd_TM_danh_gia_Click(object sender, EventArgs e)
        {
            try
            {
                DataRow v_dr = m_grv_ds_don_dat_hang_can_nghiem_thu.GetDataRow(m_grv_ds_don_dat_hang_can_nghiem_thu.FocusedRowHandle);
                m_us = new US_GD_DAT_HANG(CIPConvert.ToDecimal(v_dr["ID"].ToString()));
                f115_TM_danh_gia v_f115 = new f115_TM_danh_gia();
                v_f115.displayForTM(m_us);
                load_data_to_grid(); ;

            }
            catch (Exception v_e)
            {

                CSystemLog_301.ExceptionHandle(v_e);
            }
        }
 private void update_thoi_gian_hoan_thanh_don_hang()
 {
     US_GD_DAT_HANG v_us = new US_GD_DAT_HANG(m_us.dcID_DON_HANG);
     v_us.datTHOI_GIAN_HOAN_THANH = System.DateTime.Now;
     v_us.Update();
 }
        private void m_cmd_TM_danh_gia_Click(object sender, EventArgs e)
        {
            try
            {
                fill_data_to_m_us();
                f115_TM_danh_gia v_f115 = new f115_TM_danh_gia();
                US_GD_DAT_HANG v_us = new US_GD_DAT_HANG(m_us.dcID_DON_HANG);
                v_f115.displayForTM(v_us);
                load_data_2_grid();

            }
            catch (Exception v_e )
            {

                CSystemLog_301.ExceptionHandle(v_e);
            }
        }
        private void m_cmd_TM_huy_hon_hang_Click(object sender, EventArgs e)
        {
            try
            {
                fill_data_to_m_us();
                f103_TD_ly_do_tu_choi f103 = new f103_TD_ly_do_tu_choi();
                US_GD_DAT_HANG v_us_gd_dat_hang = new US_GD_DAT_HANG(m_us.dcID_DON_HANG);
                f103.Display(v_us_gd_dat_hang);
                load_data_2_grid();
            }
            catch (Exception v_e)
            {

                CSystemLog_301.ExceptionHandle(v_e);
            }
        }
 private void m_cmd_danh_gia_Click(object sender, EventArgs e)
 {
     try
     {
         DataRow v_dr = m_grv_ds_dh_hoan_thanh.GetDataRow(m_grv_ds_dh_hoan_thanh.FocusedRowHandle);
         decimal v_id_giao_dich = CIPConvert.ToDecimal(v_dr["ID_DON_HANG"].ToString());
         decimal v_id_log_giao_dich = CIPConvert.ToDecimal(v_dr["ID"].ToString());
         US_GD_DAT_HANG v_us = new US_GD_DAT_HANG(v_id_giao_dich);
         US_GD_LOG_DAT_HANG v_us_log = new US_GD_LOG_DAT_HANG();
         f124_danh_gia_cua_khach_hang v_f = new f124_danh_gia_cua_khach_hang();
         v_f.display(v_us, v_us_log);
         load_data();
     }
     catch (Exception v_e)
     {
         CSystemLog_301.ExceptionHandle(v_e);
     }
 }
 private void m_cmd_cap_nhat_TD_Click(object sender, EventArgs e)
 {
     decimal v_deadline = 0;
     DataRow v_dr = m_grv_gd_dat_hang_gd_log_dat_hang.GetDataRow(m_grv_gd_dat_hang_gd_log_dat_hang.FocusedRowHandle);
     US_GD_DAT_HANG v_us = new US_GD_DAT_HANG(CIPConvert.ToDecimal(v_dr["ID_DON_HANG"].ToString()));
     f100_don_dat_hang_new v_f100 = new f100_don_dat_hang_new();
     v_f100.displayForUpdate(v_us, v_deadline);
     load_data_2_grid();
 }
Exemplo n.º 17
0
 internal void displayForTM(IPCOREUS.US_GD_DAT_HANG m_us)
 {
     load_data_2_form(m_us);
     this.ShowDialog();
 }
Exemplo n.º 18
0
        internal void displayForUpdate(US_GD_DAT_HANG v_us, decimal deadline_id)
        {
            try
            {
                m_us = v_us;
                if (deadline_id == 1)
                {
                    format_controlls_for_refurse_deadline();
                    us_2_form(v_us);
                    m_e_form_mode = DataEntryFormMode.UpdateDataState;
                    m_deadline_id = deadline_id;
                    load_data_to_lich_su_thuc_hien();
                    this.ShowDialog();
                }
                else
                {
                    format_controlls();
                    us_2_form(v_us);
                    m_e_form_mode = DataEntryFormMode.UpdateDataState;
                    load_data_to_lich_su_thuc_hien();
                    this.ShowDialog();
                }

            }
            catch (Exception v_e)
            {

                CSystemLog_301.ExceptionHandle(v_e);
            }
        }
Exemplo n.º 19
0
 private void update_trang_thai_don_hang(US_GD_DAT_HANG v_us)
 {
     f112_FO_chuyen_don_hang_cho_PM v_f = new f112_FO_chuyen_don_hang_cho_PM();
     v_f.displayForUpdate(v_us);
 }
 internal void Display_for_update(IPCOREUS.US_GD_DAT_HANG v_us)
 {
     load_data_2_form(v_us);
     m_us = new US_GD_DAT_HANG(v_us.dcID);
     this.Show();
 }
Exemplo n.º 21
0
        private void v_cmd_dieu_phoi_BO_Click(object sender, EventArgs e)
        {
            try
            {
                DataRow v_dr = m_grv_FO_danh_sach_don_hang.GetDataRow(m_grv_FO_danh_sach_don_hang.FocusedRowHandle);
                US_GD_DAT_HANG v_us = new US_GD_DAT_HANG(CIPConvert.ToDecimal(v_dr["ID"].ToString()));
                f100_don_dat_hang_new v_f100 = new f100_don_dat_hang_new();
                v_f100.displayForUpdate(v_us);
            }
            catch (Exception v_e)
            {

                CSystemLog_301.ExceptionHandle(v_e);
            }
        }
Exemplo n.º 22
0
        private void gui_emai_xac_nhan(US_GD_DAT_HANG m_us)
        {
            US_DUNG_CHUNG v_us = new US_DUNG_CHUNG();
            DataSet v_ds = new DataSet();
            v_ds.Tables.Add(new DataTable());
            v_us.FillDatasetWithQuery(v_ds, "select * from dm_mau_email where id =10");
            string TIEU_DE = v_ds.Tables[0].Rows[0]["TIEU_DE_MAIL"].ToString();
            string NOI_DUNG = v_ds.Tables[0].Rows[0]["NOI_DUNG_EMAIL"].ToString();
            string GUI_CC = v_ds.Tables[0].Rows[0]["GUI_CC"].ToString();

            TIEU_DE = TIEU_DE.Replace("MA_DON_HANG", m_us.strMA_DON_HANG);
            NOI_DUNG = NOI_DUNG.Replace("MA_DON_HANG", m_us.strMA_DON_HANG);
            NOI_DUNG = NOI_DUNG.Replace("USER_NHAN_VIEN", m_txt_ho_ten_nguoi_dat_hang.Text);
            NOI_DUNG = NOI_DUNG.Replace("USER_DON_VI", m_cbo_dv_don_vi.Text);
            NOI_DUNG = NOI_DUNG.Replace("USER_DIEN_THOAI", m_txt_dien_thoai.Text);
            NOI_DUNG = NOI_DUNG.Replace("USER_THOI_GIAN_DAT_HANG", m_us.datTHOI_GIAN_TAO.ToString());
            NOI_DUNG = NOI_DUNG.Replace("LOAI_DICH_VU_HO_TRO", m_cbo_dich_vu.Text);
            NOI_DUNG = NOI_DUNG.Replace("YEU_CAU_CU_THE", m_txt_yeu_cau_cu_the.Text);
            NOI_DUNG = NOI_DUNG.Replace("THOI_GIAN_HOAN_THANH_THUC_TE", "chưa có");
            NOI_DUNG = NOI_DUNG.Replace("LICH_SU_TRAO_DOI", "Vừa tiếp nhận.");
            NOI_DUNG = NOI_DUNG.Replace("THOI_GIAN_MONG_MUON_SUA_XONG", m_dat_thoi_diem_can_hoan_thanh.Text + "hoặc thời gian hoàn thành là:" + m_cbo_thoi_gian_hoan_thanh.Text);
            NOI_DUNG = NOI_DUNG.Replace("PHAN_HOI_CUA_DVMC", m_txt_phan_hoi_tu_dvmc.Text);
            string nguoi_xu_ly = "";

            for (int i = 0; i < m_lst_id_nguoi_xu_ly.Count; i++)
            {
                US_DUNG_CHUNG v_us_2 = new US_DUNG_CHUNG();
                DataSet v_ds_2 = new DataSet();
                v_ds_2.Tables.Add(new DataTable());
                v_us_2.FillDatasetWithQuery(v_ds_2, "select * from ht_nguoi_su_dung where id=" + m_lst_id_nguoi_xu_ly[i]);
                nguoi_xu_ly += v_ds_2.Tables[0].Rows[0]["TEN_TRUY_CAP"].ToString() + " , ";
            }
            NOI_DUNG = NOI_DUNG.Replace("NGUOI_XU_LY_DON_HANG", nguoi_xu_ly);
            NOI_DUNG = NOI_DUNG.Replace("NGUOI_NHAN_DAT_HANG", m_cbo_nguoi_nhan_dat_hang.Text);
            US_DUNG_CHUNG v_us_1 = new US_DUNG_CHUNG();
            DataSet v_ds_1 = new DataSet();
            v_ds_1.Tables.Add(new DataTable());
            v_us_1.FillDatasetWithQuery(v_ds_1, "select * from dm_khach_hang where id=" + m_us.dcID_USER_NV_DAT_HANG);
            string to_cc = "";
            to_cc = v_ds_1.Tables[0].Rows[0]["EMAIL"].ToString();
            try
            {
                Mail.sendEmail(user_email, password, to_cc, TIEU_DE, NOI_DUNG);

            }

            catch (Exception v_e)
            {

                CSystemLog_301.ExceptionHandle(v_e);
            }
        }
Exemplo n.º 23
0
 private void update_trang_thai_don_hang(US_GD_DAT_HANG v_us)
 {
     US_DUNG_CHUNG v_us_dc = new US_DUNG_CHUNG();
     DataSet v_ds = new DataSet();
     v_ds.Tables.Add(new DataTable());
     v_us_dc.FillDatasetWithQuery(v_ds, "SELECT * FROM V_GD_DAT_HANG_GD_LOG_DAT_HANG WHERE THAO_TAC_HET_HAN_YN = 'N' AND [ID_DON_HANG] = " + v_us.dcID.ToString());
     for (int i = 0; i < v_ds.Tables[0].Rows.Count; i++)
     {
         US_GD_LOG_DAT_HANG V_us = new US_GD_LOG_DAT_HANG(CIPConvert.ToDecimal(v_ds.Tables[0].Rows[i]["ID"].ToString()));
         V_us.strTHAO_TAC_HET_HAN_YN = "Y";
         V_us.Update();
     }
     //cập nhật thời gian hoàn thành cho đơn hàng
     US_GD_DAT_HANG v_us1 = new US_GD_DAT_HANG(v_us.dcID);
     v_us1.datTHOI_GIAN_HOAN_THANH = System.DateTime.Now;
     v_us1.Update();
 }
Exemplo n.º 24
0
 private void update_thoi_gian_hoan_thanh(US_GD_DAT_HANG M_us)
 {
     US_GD_DAT_HANG v_us = new US_GD_DAT_HANG(M_us.dcID);
     v_us.datTHOI_GIAN_HOAN_THANH = System.DateTime.Now;
     v_us.Update();
 }
Exemplo n.º 25
0
 private void load_data_2_form(IPCOREUS.US_GD_DAT_HANG m_us)
 {
     m_txt_ma_don_hang.Text = m_us.strMA_DON_HANG;
     M_us = new US_GD_DAT_HANG(m_us.dcID); ;
 }
Exemplo n.º 26
0
 internal void Display(IPCOREUS.US_GD_DAT_HANG m_us)
 {
     v_us = new US_GD_DAT_HANG(m_us.dcID);
     this.Show();
 }
Exemplo n.º 27
0
        private void v_cmd_dieu_phoi_pm_Click(object sender, EventArgs e)
        {
            try
            {
                DataRow v_dr = m_grv_FO_danh_sach_don_hang.GetDataRow(m_grv_FO_danh_sach_don_hang.FocusedRowHandle);
                US_GD_DAT_HANG v_us = new US_GD_DAT_HANG(CIPConvert.ToDecimal(v_dr["ID"].ToString()));
                update_trang_thai_don_hang(v_us);
                ghi_log_gui_cho_pm(v_us);
                MessageBox.Show("Hoàn thành!");
            }
            catch (Exception v_e)
            {

                CSystemLog_301.ExceptionHandle(v_e);
            }
        }
Exemplo n.º 28
0
 private void load_data_2_form(IPCOREUS.US_GD_DAT_HANG m_us)
 {
     m_txt_ma_don_hang.Text = m_us.strMA_DON_HANG;
     M_us = new US_GD_DAT_HANG(m_us.dcID);;
 }
Exemplo n.º 29
0
 internal void Display(IPCOREUS.US_GD_DAT_HANG m_us)
 {
     v_us = new US_GD_DAT_HANG(m_us.dcID);
     this.Show();
     kieu_load_form = 1;
 }
 private void cap_nhat_thoi_gian_hoan_Thanh()
 {
     US_GD_DAT_HANG v_us = new US_GD_DAT_HANG();
     v_us.dcID = m_us.dcID_GD_DAT_HANG;
     v_us.datTHOI_GIAN_HOAN_THANH = System.DateTime.Now;
 }
        private void m_cmd_admin_tiep_nhan_xu_ly_Click(object sender, EventArgs e)
        {
            try
            {
                fill_data_to_m_us();
                DataRow v_dr = m_grv_gd_dat_hang_gd_log_dat_hang.GetDataRow(m_grv_gd_dat_hang_gd_log_dat_hang.FocusedRowHandle);
                US_GD_DAT_HANG v_us = new US_GD_DAT_HANG(CIPConvert.ToDecimal(v_dr["ID_DON_HANG"].ToString()));
                f100_don_dat_hang_new v_f100 = new f100_don_dat_hang_new();
                v_f100.displayForUpdate(v_us, 1);
                update_log_admin_tiep_nhan();
                ghi_log_admin_da_nhan_xu_ly();
                load_data_2_grid();
                MessageBox.Show("Đã tiếp nhận đơn hàng!");
            }
            catch (Exception v_e)
            {

                CSystemLog_301.ExceptionHandle(v_e);
            }
        }
Exemplo n.º 32
0
 private void update_trang_thai_don_hang_chua_hoan_thanh(US_GD_DAT_HANG v_us)
 {
     US_DUNG_CHUNG v_us_dc = new US_DUNG_CHUNG();
     DataSet v_ds = new DataSet();
     v_ds.Tables.Add(new DataTable());
     v_us_dc.FillDatasetWithQuery(v_ds, "SELECT * FROM V_GD_DAT_HANG_GD_LOG_DAT_HANG WHERE THAO_TAC_HET_HAN_YN = 'N' AND [ID_DON_HANG] = " + v_us.dcID.ToString());
     for (int i = 0; i < v_ds.Tables[0].Rows.Count; i++)
     {
         US_GD_LOG_DAT_HANG V_us = new US_GD_LOG_DAT_HANG(CIPConvert.ToDecimal(v_ds.Tables[0].Rows[i]["ID"].ToString()));
         V_us.strTHAO_TAC_HET_HAN_YN = "Y";
         V_us.Update();
     }
 }
 private void tu_dong_danh_gia()
 {
     US_DUNG_CHUNG v_us = new US_DUNG_CHUNG();
     DataSet v_ds = new DataSet();
     v_ds.Tables.Add(new DataTable());
     string v_str_query = "SELECT * FROM GD_DAT_HANG WHERE  THOI_GIAN_HOAN_THANH is not null AND ID_DANH_GIA_TU_USER_DAT_HANG IS NULL";
     v_us.FillDatasetWithQuery(v_ds, v_str_query);
     for (int i = 0; i < v_ds.Tables[0].Rows.Count; i++)
     {
         US_GD_DAT_HANG v_us_gd_dat_hang = new US_GD_DAT_HANG(CIPConvert.ToDecimal(v_ds.Tables[0].Rows[i][0].ToString()));
         DateTime v_thoi_gian_hoan_thanh = v_us_gd_dat_hang.datTHOI_GIAN_HOAN_THANH.AddDays(3);
         if (System.DateTime.Compare(v_thoi_gian_hoan_thanh, System.DateTime.Now) == -1)
         {
             v_us_gd_dat_hang.dcID_DANH_GIA_TU_USER_DAT_HANG = 124;
             v_us_gd_dat_hang.Update();
         }
     }
 }
        private void luu_danh_gia_don_hang()
        {
            //US_V_GD_DAT_HANG v_us_dm_dat_hang = new US_V_GD_DAT_HANG();

            decimal v_dc_id_don_hang = 0;
            v_dc_id_don_hang = CIPConvert.ToDecimal(hdf_id_don_hang.Value);
            decimal v_dc_id_danh_gia = 0;
            if (m_rdb_rat_hai_long.Checked) v_dc_id_danh_gia = ID_HANG_DANH_GIA.RAT_HAI_LONG;
            else if (m_rdb_hai_long.Checked) v_dc_id_danh_gia = ID_HANG_DANH_GIA.HAI_LONG;
            else if (m_rdb_xong_viec.Checked) v_dc_id_danh_gia = ID_HANG_DANH_GIA.XONG_VIEC;
            else if (m_rdb_hoi_duoi.Checked) v_dc_id_danh_gia = ID_HANG_DANH_GIA.HOI_DUOI;
            else if (m_rdb_khong_dat.Checked) v_dc_id_danh_gia = ID_HANG_DANH_GIA.KHONG_DAT;
            string v_str_y_kien_khac = m_txt_y_kien_khac.Text.Trim();
            US_GD_DAT_HANG v_us = new US_GD_DAT_HANG(v_dc_id_don_hang);
            v_us.dcID_DANH_GIA_TU_USER_DAT_HANG = v_dc_id_danh_gia;
            v_us.strY_KIEN_KHAC_TU_USER_DAT_HANG = v_str_y_kien_khac;
            // _us.dcID_LOAI_THOI_GIAN_CAN_HOAN_THANH = CIPConvert.ToDecimal(return_loai_thoi_gian_can_hoan_thanh(m_rdb_loai_time_15phut, m_rdb_loai_time_4h, m_rdb_loai_time_1ngay, m_rdb_loai_time_1tuan, m_rdb_loai_time_1thang).ToString());
            v_us.Update();
            //Response.Redirect("Thanks.aspx", false);
            HttpContext.Current.ApplicationInstance.CompleteRequest();
        }
Exemplo n.º 35
0
 //ghi lai dieu phoi cho tung nguoi
 private void ghi_log_dieu_phoi_cho_nguoi_xu_ly(decimal nguoi_nhan_tao_tac_i, US_GD_DAT_HANG m_us)
 {
     US_DUNG_CHUNG v_us_dc = new US_DUNG_CHUNG();
     US_GD_LOG_DAT_HANG v_us = new US_GD_LOG_DAT_HANG();
     v_us.dcID_LOAI_THAO_TAC = 295;//fix cung cho tao tac dieu huong--> bi ngu
     v_us.dcID_GD_DAT_HANG = m_us.dcID;
     v_us.dcID_NGUOI_NHAN_THAO_TAC = nguoi_nhan_tao_tac_i;
     v_us.dcID_NGUOI_TAO_THAO_TAC = us_user.dcID;//?? văn
     v_us.datNGAY_LAP_THAO_TAC = System.DateTime.Now;
     v_us.strTHAO_TAC_HET_HAN_YN = "N";
     v_us.strGHI_CHU = us_user.strTEN_TRUY_CAP + " đã điều phối cho " + v_us_dc.get_ten_nguoi_su_dung(nguoi_nhan_tao_tac_i);
     v_us.Insert();
 }