Exemplo n.º 1
0
        //[Conditional("DEBUG_SERVICE")]
        //private  void DebugMode()
        //{
        //    Servicelog();
        //    Debugger.Break();
        //}
        public void Servicelog()
        {
            DML_Utility objDML = new DML_Utility();

            try
            {
                //objDML.Add_Exception_Log("Service Start", "");
                ExecuteProcess   obj    = new ExecuteProcess();
                Get_Data_Utility objGet = new Get_Data_Utility();
                string           error  = obj.Write_JSON_TO_Download();
                //objDML.Add_Exception_Log("Download Complete", "");

                System.Threading.Thread.Sleep(2000);

                CaseCreationProcessor obj1 = new CaseCreationProcessor();
                string output1             = obj.Execute_Excel_YetToStart_Process_Download();
                //objDML.Add_Exception_Log("FreshCase Request Sent", "");

                System.Threading.Thread.Sleep(2000);
                obj.Read_Response();
                string output = obj1.Create_Case_Creation_Json_For_FreshCase();
                //objDML.Add_Exception_Log("Service End", "");
            }
            catch (Exception ex)
            {
                objDML.Add_Exception_Log("Wipro exception : " + ex.Message, "");
                Console.WriteLine(ex.Message.ToString());
                throw ex;
            }
        }
Exemplo n.º 2
0
        public void Servicelog()
        {
            DML_Utility objDML = new DML_Utility();

            try
            {
                ExecuteProcess   obj    = new ExecuteProcess();
                Get_Data_Utility objGet = new Get_Data_Utility();
                string           error  = obj.Write_JSON_TO_Download();
                System.Threading.Thread.Sleep(2000);

                CaseCreationProcessor obj1 = new CaseCreationProcessor();
                string output1             = obj.Execute_Excel_YetToStart_Process_Download();
                System.Threading.Thread.Sleep(2000);
                obj.Read_Response();
                string output = obj1.Create_Case_Creation_Json_For_FreshCase();

                //ExecuteProcess obj2 = new ExecuteProcess();
                //clsState state = new clsState();
                //List<tbl_request_state_instance> OpenStates = objGet.GetAllOpenState();
                //foreach (var item in OpenStates)
                //{
                //    state.SwitchAllOpenStates(item);
                //}
            }
            catch (Exception ex)
            {
                objDML.Add_Exception_Log(ex.Message, "");
                Console.WriteLine("Wipro exception : " + ex.Message.ToString());
                throw ex;
            }
        }
Exemplo n.º 3
0
        static void Execute()
        {
            DML_Utility objDML = new DML_Utility();

            ExecuteProcess        obj  = new ExecuteProcess();
            CaseCreationProcessor obj1 = new CaseCreationProcessor();

            //objDML.Insert_Json_in_requesStateInstanse(Convert.ToInt64(338200), 1, "REQ-0002", 165, "Case Creation by Touchless", 1, 5, 0);
            //long NewRequestID = 23548;
            //string fileupload = "C:\\Users\\Grid\\Downloads\\My Received Files\\My Received Files";
            //string destinationPath = fileupload + "\\" + NewRequestID;
            //List<string> copiedFiles = FileUtility.FileUpload(fileupload, destinationPath);
            //objDML.Insert_FilePathIndocument_upload(copiedFiles, Convert.ToInt64(NewRequestID));


            string error = obj.Write_JSON_TO_Download();

            System.Threading.Thread.Sleep(2000);

            string output1 = obj.Execute_Excel_YetToStart_Process_Download();

            System.Threading.Thread.Sleep(2000);
            obj.Read_Response();
            //string output = obj1.Create_Case_Creation_Json_For_FreshCase();
        }
 public void Servicelog()
 {
     try
     {
         ExecuteProcess obj    = new ExecuteProcess();
         string         output = obj.Execute_Excel_YetToStart_Process_Download();
     }
     catch (Exception ex)
     {
         Console.WriteLine("Infosys exception : " + ex.Message.ToString());
         throw ex;
     }
 }