Example #1
0
 public TblHD_Nhap GetHD_No(int _maNCC)
 {
     string sql =string.Format("select *, convert(char(10), NGAYLAP,103) as NGAYLAP1"+
         " from dbo.HD_NHAP where MaNCC={0} and TINHTRANG={1}", _maNCC, 1);
     tblHDNhap = new TblHD_Nhap(sql);
     return tblHDNhap;
 }
Example #2
0
        public void HDNhap_No(int maNCC)
        {
            Refesh();
            try
            {
                tblHDNhap = tPhieuChi.GetHD_No(maNCC);
                if (tblHDNhap != null)
                {
                    lvHD.Items.Clear();
                    for (int i = 0; i < tblHDNhap.Rows.Count; i++)
                    {
                        Add_LVHD(lvHD, tblHDNhap, i);
                    }

                }
            }
            catch (Exception ex)
            {
                TLog.WriteErr("frmPHIEUCHI_LoadHD_No", ex.Message + "|" + ex.StackTrace);
            }
        }