示例#1
0
        } // Refresh

        /// <summary>
        ///
        /// </summary>
        private void CompleteLine()
        {
            if (!Adress.Selected)
            {
                Negative("Не указан адрес товара!");
                return;
            }

            string taskComplCross;

            taskComplCross = "";
            foreach (DataRow dr in SS.AcceptedCross.Rows)
            {
                if ((int)dr["CountPack"] == (int)dr["CountPackFull"])
                {
                    //полностью сделана
                    taskComplCross += dr["IDDOC"].ToString() + ",";
                }
            }
            //отрежим последнюю запятую
            taskComplCross = taskComplCross.Substring(0, taskComplCross.Length - 1);
            Dictionary <string, object> DataMapWrite = new Dictionary <string, object>();

            DataMapWrite["Спр.СинхронизацияДанных.ДатаСпрВход1"] = SS.ExtendID(Employer.ID, "Спр.Сотрудники");
            DataMapWrite["Спр.СинхронизацияДанных.ДатаСпрВход2"] = SS.ExtendID(Adress.ID, "Спр.Секции");
            DataMapWrite["Спр.СинхронизацияДанных.ДатаВход1"]    = taskComplCross;

            Dictionary <string, object> DataMapRead;
            List <string> FieldList = new List <string>();

            FieldList.Add("Спр.СинхронизацияДанных.ДатаРез1");
            if (!SS.ExecCommand("CompleteAcceptanceCross", DataMapWrite, FieldList, out DataMapRead))
            {
                Negative();
                return;
            }
            if ((int)(decimal)DataMapRead["Спр.СинхронизацияДанных.ФлагРезультата"] == -3)
            {
                Negative(DataMapRead["Спр.СинхронизацияДанных.ДатаРез1"].ToString());
                return;
            }
            if ((int)(decimal)DataMapRead["Спр.СинхронизацияДанных.ФлагРезультата"] != 3)
            {
                Negative("Не известный ответ робота... я озадачен...");
                return;
            }
            FExcStr = DataMapRead["Спр.СинхронизацияДанных.ДатаРез1"].ToString();

            Refresh();
        }
示例#2
0
文件: RefillSet.cs 项目: sanekkop/WPM
        }     // Init

        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        internal override ABaseMode Cancel()
        {
            SS.OnReport(new ReportEventArgs("Отказ от задания..."));
            Dictionary <string, object> DataMapWrite = new Dictionary <string, object>();

            DataMapWrite["Спр.СинхронизацияДанных.ДокументВход"] = SS.ExtendID(DocAP.ID, "АдресПеремещение");
            DataMapWrite["Спр.СинхронизацияДанных.ДатаСпрВход1"] = SS.ExtendID(Employer.ID, "Спр.Сотрудники");
            Dictionary <string, object> DataMapRead;
            List <string> FieldList = new List <string>();

            FieldList.Add("Спр.СинхронизацияДанных.ДатаРез1");
            if (!SS.ExecCommand("RefillSetDellItem", DataMapWrite, FieldList, out DataMapRead))
            {
                return(Negative(SS.ExcStr));
            }
            if ((int)(decimal)DataMapRead["Спр.СинхронизацияДанных.ФлагРезультата"] == -3)
            {
                return(Negative(DataMapRead["Спр.СинхронизацияДанных.ДатаРез1"].ToString()));
            }
            return(Refresh());
        } // Cancel
示例#3
0
        } // ReactionKeyDo

        /// <summary>
        ///
        /// </summary>
        private void Complete()
        {
            SS.OnReport(new ReportEventArgs("Фиксирую..."));
            Dictionary <string, object> DataMapWrite = new Dictionary <string, object>();

            DataMapWrite["Спр.СинхронизацияДанных.ДокументВход"] = SS.ExtendID(DocAP.ID, "АдресПеремещение");
            DataMapWrite["Спр.СинхронизацияДанных.ДатаСпрВход1"] = SS.ExtendID(Employer.ID, "Спр.Сотрудники");
            Dictionary <string, object> DataMapRead;
            List <string> FieldList = new List <string>();

            FieldList.Add("Спр.СинхронизацияДанных.ДатаРез1");
            if (!SS.ExecCommand("RefillSetComplete", DataMapWrite, FieldList, out DataMapRead))
            {
                Negative(SS.ExcStr);
                return;
            }
            if ((int)(decimal)DataMapRead["Спр.СинхронизацияДанных.ФлагРезультата"] == -3)
            {
                Negative(DataMapRead["Спр.СинхронизацияДанных.ДатаРез1"].ToString());
                return;
            }
            JumpTo(new RefillChoise(SS, this));
        } // Complete