Esempio n. 1
0
 public static void DeleteAllFlows()
 {
     try
     {
         var flowList = FlowList.GetInternalElement().FindElementsById("browser_element_name");
         while (flowList.Count > 0)
         {
             string flowName = flowList[0].Text;
             flowList[0].Click();
             ConsoleMessage.Pass(String.Format("{0}. Click on flow with name: {1}",
                                               ActivityName, flowName));
             FlowActivity.DeleteFlow.Tap();
             FlowDeleteDialog.Delete.Tap();
             flowList = FlowList.GetInternalElement().FindElementsById("browser_element_name");
         }
         ConsoleMessage.Pass(String.Format("{0}. Delete all flow in current assay",
                                           ActivityName));
     }
     catch (Exception ex)
     {
         ConsoleMessage.Fail(String.Format("{0}. Can't delete all flow in current assay",
                                           ActivityName), ex);
         throw;
     }
 }
Esempio n. 2
0
        public AuctionFlow(ScrapBrowser browser, Parameter param)
            : base(browser, param)
        {
            logger.Info("Action initialize");

            FlowList.Add("Member/SignIn/LogOn", Login, null);
            FlowList.Add("Home/Home", Home, null);
            FlowList.Add("membership/MyInfo/MyInfoComp", Profile, null);
            FlowList.Add("Escrow/Delivery/BuyDecision", BuyDecision, null);
            FlowList.Add("Member/Settle/IacSettleDetail", LacSettleDetail, null);
            FlowList.Add("Escrow/Delivery/GeneralDelivery", GeneralDelivery, null);
            FlowList.Add("Escrow/Delivery/Sending", Sending, null);
            FlowList.Add("Areas/Manual/SellerGuide", ScrapEnd, null);
            FlowList.Add("Escrow/Claim/ReturnRequestManagement", ReturnRequestManagement, null);
            FlowList.Add("Sell/Items/ItemsMng", ItemsMng, null);
            FlowList.Add("Sell/Items/GetItemMngList", GetItemMngList, null);
            FlowList.Add("Member/CustomerService/CSManagement", CSManagement, null);

            FlowList.Add("BuyDecisionExcel", BuyDecisionExcel, null);
            FlowList.Add("IacRemitListExcelDownload", LacRemitListExcelDownload, null);
            FlowList.Add("GeneralDeliveryExcel", GeneralDeliveryExcel, null);
            FlowList.Add("SendingExcel", SendingExcel, null);
            FlowList.Add("ExcelDownload", ExcelDownload, null);

            base.ReflectFlyweightKeys.Add(typeof(BuyDecisionExcel));
            base.ReflectFlyweightKeys.Add(typeof(LacRemitListExcel));
            base.ReflectFlyweightKeys.Add(typeof(GeneralDeliveryExcel));
            base.ReflectFlyweightKeys.Add(typeof(SendingExcel));
            base.ReflectFlyweightKeys.Add(typeof(ReturnRequest));
            base.ReflectFlyweightKeys.ForEach(type =>
            {
                ReflectFlyweight.Add(type, new List <FieldInfo>(type.GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance)));
            });
        }
Esempio n. 3
0
 protected override void ScrapType2(FlowModelData flowModelData)
 {
     FlowList.Add("stdservice/ipssCheckLogin.do", Login, null);
     FlowList.Add("member/login.do", Login2, null, (data) =>
     {
         data.DataPack["st"] = DateTime.Now.AddMonths(-1).AddDays(-DateTime.Now.Day).AddDays(1);
     });
     FlowList.Add("ipss/ipssmainscr.do", Main, null, (data) =>
     {
         buffer.Clear();
         buffer.Append("http://ipss.interpark.com/settlement/ProOMSetlDetail.do?");
         this.buffer.Append(CreateGetParameter(new Dictionary <String, String>()
         {
             { "_method", "totalPro" },
             { "_style", "grid" },
             { "sc.strDt", data.DataPack["st"].ToString("yyyyMMdd") },
             { "sc.endDt", data.DataPack["st"].AddMonths(1).AddDays(-1).ToString("yyyyMMdd") },
             { "_search", "false" },
             { "nd", "" },
             { "rows", "30" },
             { "page", "1" },
             { "sidx", "" },
             { "sord", "asc" }
         }));
         base.Navigate(buffer.ToString());
     });
     FlowList.Add("settlement/ProOMSetlDetail.do", ProOMSetlDetail, null, (data) =>
     {
         Response.SetResultCode(ResultCode.RC1000);
         data.IsNextScrap = false;
     });
 }
Esempio n. 4
0
 public GMarketFlow(ScrapBrowser browser, Parameter param)
     : base(browser, param)
 {
     logger.Info("Gmarket initialize");
     FlowList.Add("Member/SignIn/LogOn", Login, null);
     FlowList.Add("Home/Home", Home, null);
     FlowList.Add("Member/CustomerService/CSManagement", CSManagement, null);
 }
Esempio n. 5
0
 public HalfclubFlow(ScrapBrowser browser, Parameter param)
     : base(browser, param)
 {
     logger.Info("HalfclubFlow initialize");
     FlowList.Add("index.aspx", Login, null);
     FlowList.Add("Home/Default.aspx", Default, null);
     FlowList.Add("PrivateMng/CompanyModify.aspx", CompanyModify, null);
 }
Esempio n. 6
0
        private void button1_Click(object sender, EventArgs e)
        {
            ServiceConnection.Service.InsertCar(Name.Text, Convert.ToInt32(Year.Value), Date.Value);
            FlowList flowList = new FlowList();

            flowList.CarsList(_mainForm);
            Close();
        }
Esempio n. 7
0
        private void button1_Click(object sender, EventArgs e)
        {
            ServiceConnection.Service.InsertCarService(Name.Text, Description.Text);
            FlowList flowList = new FlowList();

            flowList.StoList(_mainForm);
            Close();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            ServiceConnection.Service.InsertService(Name.Text, Description.Text, Convert.ToDouble(Price.Value));
            FlowList flowList = new FlowList();

            flowList.ServicesList(_mainForm);
            Close();
        }
Esempio n. 9
0
 protected override void ScrapType4(FlowModelData flowModelData)
 {
     FlowList.Add("stdservice/ipssCheckLogin.do", Login, null);
     FlowList.Add("member/login.do", Login2, null);
     FlowList.Add("ipss/ipssmainscr.do", Main, "http://ipss.interpark.com/delivery/reportEntr.do?_method=excel&_style=ipssPro&sc.yyyymm=" + Parameter.Sdate.Substring(0, 6));
     FlowList.Add("delivery/reportEntr.do", ReportEntrExcel, null);
     //"http://ipss.interpark.com/delivery/reportEntr.do?_method=excel&_style=ipssPro&sc.yyyymm=" + Parameter.Sdate.Substring(0, 6)
     //DownloadMap.Add("delivery/reportEntr.do",null);
 }
Esempio n. 10
0
        public StoreFarmFlow(ScrapBrowser browser, Parameter param)
            : base(browser, param)
        {
            logger.Info("StoreFarmFlow initialize");

            FlowList.Add("#/login", Login, null);
            FlowList.Add("#", Home, null);
            FlowList.Add("#/home/dashboard", Home, null);
            FlowList.Add("#/seller/info", Info, null);
        }
Esempio n. 11
0
 protected override void ScrapType0(FlowModelData flowModelData)
 {
     FlowList.Add("stdservice/ipssCheckLogin.do", Login, null);
     FlowList.Add("member/login.do", Login2, null);
     FlowList.Add("ipss/ipssmainscr.do", Main, "http://ipss.interpark.com/ipss/ipssmainscr.do?_method=initTabMain&_style=ipssPro&newType=Y");
     FlowList.Add("member/memberentrjoin.do", MemberentrJoin, null, (data) =>
     {
         Response.SetResultCode(ResultCode.RC1000);
         data.IsNextScrap = false;
     });
 }
Esempio n. 12
0
 public StreetFlow(ScrapBrowser browser, Parameter param)
     : base(browser, param)
 {
     logger.Info("StreetFlow initialize");
     FlowList.Add("login/Login.page", Login, null);
     FlowList.Add("Index.tmall", Index, null);
     FlowList.Add("marketing/SellerMenuAction.tmall", SellerMenuAction, null);
     FlowList.Add("register/SellerInfoEdit.tmall", SellerInfoEdit, null);
     FlowList.Add("stats/StatsPeriodProdSel.tmall", StatsPeriodProdSel, null);
     FlowList.Add("remittance/SellerRemittanceAction.tmall", SellerRemittanceAction, null);
     FlowList.Add("escrow/OrderingLogisticsAction.tmall", OrderingLogisticsAction, null);
 }
Esempio n. 13
0
 public static void VerifyFlowNotExist(string flowName)
 {
     try
     {
         Assert.True(FlowList.GetInternalElement().FindElementsByName(flowName).Count == 0,
                     String.Format("Flow with name: {0} still exist", flowName));
         ConsoleMessage.Pass(String.Format("{0}. Verify, flow with name: {1} not exist",
                                           ActivityName, flowName));
     }
     catch (Exception ex)
     {
         ConsoleMessage.Fail(String.Format("{0}. Can't verify. Flow with name: {1}  exist",
                                           ActivityName, flowName), ex);
         throw;
     }
 }
Esempio n. 14
0
 public TestFlow(ScrapBrowser browser, Parameter param)
     : base(browser, param)
 {
     FlowList.Add("", Test, null);
 }
Esempio n. 15
0
        private void AboutSTO_Load(object sender, EventArgs e)
        {
            FlowList flowList = new FlowList();

            flowList.StoInfoList(this);
        }
Esempio n. 16
0
 protected override void ScrapType3(FlowModelData flowModelData)
 {
     FlowList.Add("stdservice/ipssCheckLogin.do", Login, null);
     FlowList.Add("member/login.do", Login2, null);
     FlowList.Add("ipss/ipssmainscr.do", Main, null, (data) =>
     {
         buffer.Clear();
         buffer.Append("http://ipss.interpark.com/delivery/ProDeliveryCheckList.do?");
         this.buffer.Append(CreateGetParameter(new Dictionary <String, String>()
         {
             { "_method", "list" },
             { "_style", "grid" },
             { "sc.strDt", DateTime.Now.AddDays(-14).ToString("yyyyMMdd") },
             { "sc.endDt", DateTime.Now.ToString("yyyyMMdd") },
             { "_search", "false" },
             //{"nd","" },
             //{"rows","30" },
             { "page", "1" },
             //{"sidx","" },
             //{"sord","asc" },
             { "sc.dateTp", "2" },
             { "sc.strHour", "00" },
             { "sc.endHour", "23" },
             { "sc.page", "1" }
         }));
         base.Navigate(buffer.ToString());
     });
     FlowList.Add("delivery/ProDeliveryCheckList.do", ProDeliveryCheckList, null, (data) =>
     {
         buffer.Clear();
         buffer.Append("https://ipss.interpark.com/delivery/ProDeliveryStatusList.do?");
         this.buffer.Append(CreateGetParameter(new Dictionary <String, String>()
         {
             { "_method", "list" },
             { "_style", "grid" },
             { "sc.strDt", DateTime.Now.AddDays(-14).ToString("yyyyMMdd") },
             { "sc.endDt", DateTime.Now.ToString("yyyyMMdd") },
             { "_search", "false" },
             //{"nd","" },
             //{"rows","30" },
             { "page", "1" },
             //{"sidx","" },
             //{"sord","asc" },
             { "sc.dateTp", "2" },
             { "sc.strHour", "00" },
             { "sc.endHour", "23" },
             { "sc.page", "1" }
         }));
         base.Navigate(buffer.ToString());
     });
     FlowList.Add("delivery/ProDeliveryStatusList.do", ProDeliveryStatusList, null, (data) =>
     {
         buffer.Clear();
         buffer.Append("http://ipss.interpark.com/order/ProBuyConfirmList.do?");
         this.buffer.Append(CreateGetParameter(new Dictionary <String, String>()
         {
             { "_method", "list" },
             { "_style", "grid" },
             { "sc.strDt", DateTime.Now.AddDays(-14).ToString("yyyyMMdd") },
             { "sc.endDt", DateTime.Now.ToString("yyyyMMdd") },
             { "_search", "false" },
             //{"nd","" },
             //{"rows","30" },
             { "page", "1" },
             //{"sidx","" },
             //{"sord","asc" },
             { "sc.dateTp", "2" },
             { "sc.strHour", "00" },
             { "sc.endHour", "23" },
             { "sc.page", "1" }
         }));
         base.Navigate(buffer.ToString());
     });
     FlowList.Add("order/ProBuyConfirmList.do", ProBuyConfirmList, null, (data) =>
     {
         Response.SetResultCode(ResultCode.RC1000);
         data.IsNextScrap = false;
     });
 }