Ejemplo n.º 1
0
        /// <summary>
        /// Skip Values
        /// </summary>
        /// <param name="skipCount"></param>
        /// <returns></returns>
        public SkipDetailsFunction SkipFunctionPagination(int skipCount, string url)
        {
            unitworksccsContext db          = new unitworksccsContext();
            SkipDetailsFunction returnValue = new SkipDetailsFunction();

            try
            {
                // dynamic c = db.MasterValue.Where(mv => mv.MasterValueName == "pagination").FirstOrDefault().MasterValueInt;
                int skipValueLocal = 0;
                if (skipCount == 1)
                {
                    skipValueLocal = 0;
                }
                else
                {
                    skipValueLocal = (skipCount - 1) * 10;
                }
                returnValue.skipValue = skipValueLocal;
                returnValue.takeValue = 10;
            }
            catch (Exception e)
            {
                log.Error(e); if (e.InnerException != null)
                {
                    log.Error(e.InnerException.ToString());
                }
            }

            return(returnValue);
        }
 public ToolLifeDAL(unitworksccsContext _db, IConfiguration _configuration, IOptions <AppSettings> _appSettings, i_facility_tsalContext _db2)
 {
     db            = _db;
     configuration = _configuration;
     appSettings   = _appSettings.Value;
     db2           = _db2;
 }
Ejemplo n.º 3
0
 //  public static IEmployeeShiftDetails empin;
 public EmployeeShiftDetailsDAL(unitworksccsContext _db, IConfiguration _configuration, IOptions <AppSettings> _appSettings)
 {
     db            = _db;
     configuration = _configuration;
     appSettings   = _appSettings.Value;
     //  empin = _empin;
 }
 public DocumentUploaderDAL(unitworksccsContext _db, IOptions <AppSettings> _appSettings)
 {
     db          = _db;
     appSettings = _appSettings.Value;
 }
Ejemplo n.º 5
0
 public ListOfStoppageDAL(unitworksccsContext _db, IConfiguration _configuration)
 {
     db            = _db;
     configuration = _configuration;
 }
Ejemplo n.º 6
0
 public ReworkAndRejectionDAL(unitworksccsContext _db, IConfiguration _configuration)
 {
     db            = _db;
     configuration = _configuration;
 }
 public MasterChildFgPartNumDAL(unitworksccsContext _db, IConfiguration _configuration, IOptions <AppSettings> _appSettings)
 {
     db            = _db;
     configuration = _configuration;
     appSettings   = _appSettings.Value;
 }
Ejemplo n.º 8
0
 public EscalationMatrixDAL(unitworksccsContext _db, IConfiguration _configuration, IOptions <AppSettings> _appSettings)
 {
     db            = _db;
     configuration = _configuration;
     appSettings   = _appSettings.Value;
 }
Ejemplo n.º 9
0
 public LoginDAL(unitworksccsContext _db, IConfiguration _configuration)
 {
     db            = _db;
     configuration = _configuration;
 }
 public FgPartNoDAL(unitworksccsContext _db, IConfiguration _configuration)
 {
     db            = _db;
     configuration = _configuration;
 }
 public AccountDAL(unitworksccsContext _db)
 {
     db = _db;
 }
 public ToolNameMasterDAL(unitworksccsContext _db, IConfiguration _configuration, IOptions <AppSettings> _appSettings)
 {
     db            = _db;
     configuration = _configuration;
     appSettings   = _appSettings.Value;
 }
Ejemplo n.º 13
0
 public WimarasysDAL(unitworksccsContext _db, IConfiguration _configuration)
 {
     db            = _db;
     configuration = _configuration;
 }
 public ProductWiseDefectCodeDAL(unitworksccsContext _db, IConfiguration _configuration)
 {
     db            = _db;
     configuration = _configuration;
 }
Ejemplo n.º 15
0
 public PMSDashBoardDAL(unitworksccsContext _db, IConfiguration _configuration, IOptions <AppSettings> _appSettings)
 {
     db            = _db;
     configuration = _configuration;
     appSettings   = _appSettings.Value;
 }