public List <ThongTinToChay> ToChayS()
        {
            var lst = new List <ThongTinToChay>();

            switch (View.PhuongPhapIn)
            {
            case PhuongPhapInS.Toner:
                foreach (ToInMayDigi tCh in ToInMayDigi.DocTatCa())
                {
                    var thTinToChay = new ThongTinToChay();
                    thTinToChay.ID                  = tCh.ID;
                    thTinToChay.PhuongPhapIn        = View.PhuongPhapIn;
                    thTinToChay.Ten                 = tCh.Ten;
                    thTinToChay.Rong                = tCh.Rong;
                    thTinToChay.Dai                 = tCh.Cao;
                    thTinToChay.VungInRongMax       = tCh.VungInRong;
                    thTinToChay.VungInDaiMax        = tCh.VungInCao;
                    thTinToChay.CacKhoToChayCoTheIn = tCh.KhoToChayCoTheIn;
                    thTinToChay.ThuTu               = tCh.ThuTu;
                    lst.Add(thTinToChay);
                }
                break;

            case PhuongPhapInS.Offset:
                foreach (OffsetGiaCong tCh in OffsetGiaCong.DocTatCa())
                {
                    var thTinToChay = new ThongTinToChay();
                    thTinToChay.ID                  = tCh.ID;
                    thTinToChay.PhuongPhapIn        = View.PhuongPhapIn;
                    thTinToChay.Ten                 = string.Format("[{0}] {1}", tCh.TenNhaCungCap, tCh.Ten);
                    thTinToChay.Rong                = tCh.KhoInRongMax;
                    thTinToChay.Dai                 = tCh.KhoInDaiMax;
                    thTinToChay.VungInRongMax       = tCh.KhoInRongMax;
                    thTinToChay.VungInDaiMax        = tCh.KhoInDaiMax;
                    thTinToChay.VungInRongMin       = tCh.KhoInRongMin;
                    thTinToChay.VungInDaiMin        = tCh.KhoInDaiMin;
                    thTinToChay.CacKhoToChayCoTheIn = "Giữa Min Max";
                    thTinToChay.ThuTu               = tCh.ThuTu;
                    lst.Add(thTinToChay);
                }
                break;

                /*
                 * case (int)Enumss.LoaiToIn.HPIndigo:
                 * case (int)Enumss.LoaiToIn.KhoLon: */
            }
            return(lst.OrderBy(x => x.ThuTu).ToList());;
        }
 public List <OffsetGiaCong> MayInOffsetS()
 {
     return(OffsetGiaCong.DocTatCa());
 }