Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            ReminderOrder reminderOrder = new ReminderOrder
            {
                OrderID            = new Guid("15629db5-f2bc-4d01-9142-064886f4fdad"),
                OrderDetailsIDList = new List <Guid>
                {
                    new Guid("C5D49437-D8D5-44D0-B4DC-21D7ECB2D813"),
                    new Guid("8191C8C9-10C2-43E7-98B1-CE13343DFFB0")
                },
                EmployeeNo = "999999",
                ReasonName = "加紧"
            };
            bool success = ReminderOrderService.GetInstance().CreateReminderOrder(reminderOrder);

            var customers = CustomersService.GetInstance().GetAllCustomerInfo();
            var basicData = SysBasicDataService.GetInstance().GetSysBasicData();

            Employee employee = null;
            int      result   = EmployeeService.GetInstance().GetEmployee(this.textBox1.Text, this.textBox2.Text, out employee);

            if (result == 1)
            {
            }
        }
Ejemplo n.º 2
0
        public static byte[] CreateReminderOrder(byte[] itemBuffer)
        {
            byte[]        objRet        = null;
            string        strReceive    = Encoding.UTF8.GetString(itemBuffer, ParamFieldLength.PACKAGE_HEAD, itemBuffer.Length - ParamFieldLength.PACKAGE_HEAD).Trim('\0');
            ReminderOrder reminderOrder = JsonConvert.DeserializeObject <ReminderOrder>(strReceive);

            bool result = ReminderOrderService.GetInstance().CreateReminderOrder(reminderOrder);

            if (result)
            {
                //成功
                objRet = new byte[ParamFieldLength.PACKAGE_HEAD];
                Array.Copy(BitConverter.GetBytes((int)RET_VALUE.SUCCEEDED), 0, objRet, 0, BasicTypeLength.INT32);
                Array.Copy(BitConverter.GetBytes(ParamFieldLength.PACKAGE_HEAD), 0, objRet, BasicTypeLength.INT32, BasicTypeLength.INT32);
            }
            else
            {
                //催单失败
                objRet = new byte[ParamFieldLength.PACKAGE_HEAD];
                Array.Copy(BitConverter.GetBytes((int)RET_VALUE.ERROR_DB), 0, objRet, 0, BasicTypeLength.INT32);
                Array.Copy(BitConverter.GetBytes(ParamFieldLength.PACKAGE_HEAD), 0, objRet, BasicTypeLength.INT32, BasicTypeLength.INT32);
            }
            return(objRet);
        }