private void save_data()
{
US_GD_HE_SO_CHAT_LUONG v_us_gd_hs_cl = new US_GD_HE_SO_CHAT_LUONG();
form_2_us_gd_hs_cl(v_us_gd_hs_cl);
try
{
if (v_us_gd_hs_cl.dcID > 0)
{
US_GD_HE_SO_CHAT_LUONG v_us = new US_GD_HE_SO_CHAT_LUONG(v_us_gd_hs_cl.dcID);
v_us.dcHE_SO_K = CIPConvert.ToDecimal(m_txt_hs.Text.Trim());
v_us.datNGAY_SUA = DateTime.Now.Date;
//nguoi sua
v_us.BeginTransaction();
v_us.Update();
v_us.CommitTransaction();
}
else
{
v_us_gd_hs_cl.BeginTransaction();
v_us_gd_hs_cl.Insert();
v_us_gd_hs_cl.CommitTransaction();
}
}
catch (Exception v_e)
{
throw v_e;
}
}