Пример #1
0
 public static int AddNewDropPoint(Model.RouteMaster ObjRouteMaster)
 {
     int rVal = 0;
     try
     {
         Common objCommon = new Common();
         RouteMasterBLL ObjBllRouteMaster = new RouteMasterBLL();
         ObjRouteMaster.CreatedBy = objCommon.GetCurrentUserName();
         rVal = ObjBllRouteMaster.InsertDropPoint(ObjRouteMaster);
     }
     catch (Exception ex)
     {
         // Log the error to a text file in the Error folder
         Common.WriteError(ex);
     }
     return rVal;
 }
Пример #2
0
 public static bool AddNewRoute(Model.RouteMaster ObjRouteMaster)
 {
     bool isFlag = false;
     try
     {
         Common objCommon = new Common();
         RouteMasterBLL ObjBllRouteMaster = new RouteMasterBLL();
         ObjRouteMaster.CreatedBy = objCommon.GetCurrentUserName();
         Int32 rVal = ObjBllRouteMaster.InsertRouteMaster(ObjRouteMaster);
         if (rVal > 0)
         {
             return (isFlag = true);
         }
     }
     catch (Exception ex)
     {
         // Log the error to a text file in the Error folder
         Common.WriteError(ex);
     }
     return isFlag;
 }
        public static List<DC> GetAllDC()
        {
            List<DC> lstRoute = null;
            RouteMasterBLL objRouteMasterBLL = null;
            RouteMaster routeMaster = new RouteMaster();
            //   int DCId = 1;//
            try
            {

                objRouteMasterBLL = new RouteMasterBLL();
                lstRoute = objRouteMasterBLL.GetSelectedDC();
            }
            catch (Exception ex)
            {

            }
            finally
            {
                objRouteMasterBLL = null;
            }
            return lstRoute;
        }
Пример #4
0
 public static Int32 UpdateDropPoint(Model.RouteMaster ObjRouteMaster)
 {
     Int32 isFlag = 0;
     try
     {
         Common objCommon = new Common();
         RouteMasterBLL ObjBllRouteMaster = new RouteMasterBLL();
         ObjRouteMaster.CreatedBy = objCommon.GetCurrentUserName();
         Int32 rVal = ObjBllRouteMaster.UpdateRouteMaster(ObjRouteMaster);
         isFlag = rVal;
     }
     catch (Exception ex)
     {
         // Log the error to a text file in the Error folder
         Common.WriteError(ex);
     }
     return isFlag;
 }
Пример #5
0
        public static List<Model.RouteMaster> GetSelectedrouteAccordingToDC(Model.RouteMaster ObjRouteMaster)
        {
            RouteMasterBLL ObjBllRouteMaster = new RouteMasterBLL();
            var list = new List<Model.RouteMaster>();
            try
            {
                list = ObjBllRouteMaster.GetSelectedrouteAccordingToDC(ObjRouteMaster);

            }
            catch(Exception ex)
            {
                // Log the error to a text file in the Error folder
                Common.WriteError(ex);
            }
            return list;
        }
Пример #6
0
        public static List<DC> GetDCList()
        {
            var DClist = new List<DC>();
            try
            {
                RouteMasterBLL ObjBllRouteMaster = new RouteMasterBLL();
                DClist = ObjBllRouteMaster.GetDCList();

            }
            catch(Exception ex)
            {
                // Log the error to a text file in the Error folder
                Common.WriteError(ex);
            }
            return DClist;
        }
Пример #7
0
        public static List<Model.RouteMaster> GetAllInactiveRoutesList()
        {
            var list = new List<Model.RouteMaster>();
            try
            {
                RouteMasterBLL ObjBllRouteMaster = new RouteMasterBLL();

                list = ObjBllRouteMaster.GetAllRoute(null, null, false);
            }
            catch(Exception ex)
            {
                // Log the error to a text file in the Error folder
                Common.WriteError(ex);
            }
            return list;
        }