protected void m_cbo_vpp_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         m_lbl_thong_bao.Visible = false;
         US_V_DM_VPP v_us = new US_V_DM_VPP();
         DS_V_DM_VPP v_ds = new DS_V_DM_VPP();
         v_us.FillDataset(v_ds, "where id_vpp=" + m_cbo_vpp.SelectedValue);
         m_lbl_don_vi_tinh.Text = v_ds.Tables[0].Rows[0]["DON_VI_TINH"].ToString();
         m_lbl_don_gia.Text = CIPConvert.ToStr(v_ds.Tables[0].Rows[0]["DON_GIA_GOM_VAT"], "#,###") + " (VNĐ)";
         m_hdf_don_gia.Value = CIPConvert.ToStr(v_ds.Tables[0].Rows[0]["DON_GIA_CHUA_VAT"]);
         //m_txt_so_luong.Focus();
     }
     catch (Exception v_e)
     {
         CSystemLog_301.ExceptionHandle(this, v_e);
     }
 }
 private void load_don_vi_tinh_don_gia()
 {
     US_V_DM_VPP v_us = new US_V_DM_VPP();
     DS_V_DM_VPP v_ds = new DS_V_DM_VPP();
     v_us.FillDataset(v_ds, "where id_vpp=" + m_cbo_vpp.SelectedValue);
     m_lbl_don_vi_tinh.Text = v_ds.Tables[0].Rows[0]["DON_VI_TINH"].ToString();
     m_lbl_don_gia.Text = CIPConvert.ToStr(v_ds.Tables[0].Rows[0]["DON_GIA_GOM_VAT"], "#,###") + " (VNĐ)";
     m_hdf_don_gia.Value = CIPConvert.ToStr(v_ds.Tables[0].Rows[0]["DON_GIA_CHUA_VAT"]);
 }
 private void load_cbo_VPP()
 {
     US_V_DM_VPP v_us = new US_V_DM_VPP();
     DS_V_DM_VPP v_ds = new DS_V_DM_VPP();
     v_us.FillDataset(v_ds);
     m_cbo_vpp.DataSource = v_ds.V_DM_VPP;
     m_cbo_vpp.DataValueField = V_DM_VPP.ID_VPP;
     m_cbo_vpp.DataTextField = V_DM_VPP.TEN_VPP;
     m_cbo_vpp.DataBind();
 }
    private void us_object_to_form_don_hang_de()
    {
        US_GD_DON_DAT_HANG_DETAIL v_us_don_hang_de = new US_GD_DON_DAT_HANG_DETAIL(CIPConvert.ToDecimal(m_hdf_ID_GD_DON_DAT_HANG_DE.Value));
        US_V_DM_VPP v_us = new US_V_DM_VPP();
        DS_V_DM_VPP v_ds = new DS_V_DM_VPP();

        v_us.FillDataset(v_ds, "where id_vpp =" + v_us_don_hang_de.dcID_VPP);
        m_txt_so_luong.Text = v_us_don_hang_de.dcSO_LUONG.ToString();
        m_cbo_vpp.DataTextField = v_ds.Tables[0].Rows[0]["TEN_VPP"].ToString();
        m_lbl_don_gia.Text = CIPConvert.ToStr(v_ds.Tables[0].Rows[0]["DON_GIA_GOM_VAT"], "#,###") + " (VNĐ)";
        if (v_us_don_hang_de.strMO_TA != null)
            m_txt_mo_ta.Text = CIPConvert.ToStr(v_us_don_hang_de.strMO_TA);
        else m_txt_mo_ta.Text = "";
    }