public static DataTable ViPhamRangBuoc(long ID_PhieuNguon, PhieuType LoaiPhieuNguon,object DOPhieuDich, PhieuType LoaiPhieuDich)
 {
     DataSet dsNguon = Get_SoLuongConLai(ID_PhieuNguon, LoaiPhieuNguon);
     DataSet dsDich = new DataSet();
     DataTable dtViPham = new DataTable();
     dtViPham.Columns.Add("HH_ID", Type.GetType("Int64"));
     dtViPham.Columns.Add("VI_PHAM");
     if (LoaiPhieuDich.GetTypeID() == 1)
     {
     }
     return new DataTable();
 }
 private static DataSet Get_SoLuongConLai(long ID_PhieuNguon, PhieuType LoaiPhieuNguon)
 {
     //Lấy về số lượng còn lại từ store FW_TINH_SO_LUONG_CON
     string str = "select * from FW_TINH_SO_LUONG_CON("+ID_PhieuNguon + ","+LoaiPhieuNguon.GetTypeID()+")";
     try
     {
         return DABase.getDatabase().LoadDataSet(str);
     }
     catch { return new DataSet(); }
 }