示例#1
0
        static void Main(string[] args)
        {
            System.Collections.Generic.List <Galaxy> GalaxyList = new System.Collections.Generic.List <Galaxy> {
            };
            try
            {
                Galaxy Galaxy_1 = new Galaxy(Galaxy.HubbleType.SBa, 2, 1e7, 0.01);
                Galaxy_1.AddSatellite(Galaxy.HubbleType.Irr, 9, 1e7, 0.02);

                Galaxy Galaxy_2 = new Galaxy(Galaxy.HubbleType.E2, 4, 2.4e8, 0.043);

                Galaxy Galaxy_3 = new Galaxy();

                GalaxyList.Add(Galaxy_1);
                GalaxyList.Add(Galaxy_2);
                GalaxyList.Add(Galaxy_3);

                foreach (Galaxy Gxy in GalaxyList)
                {
                    Gxy.Print();
                }

                System.Console.WriteLine("Changing Galaxy_2's hubble type.");
                GalaxyList[1].GalaxyHubbleType = Galaxy.HubbleType.E3;

                foreach (Galaxy Gxy in GalaxyList)
                {
                    Gxy.Print();
                }
            }
            catch (System.Exception ErrMessage)
            {
                System.Console.WriteLine(ErrMessage.ToString());
            }
        }
示例#2
0
        public bool CheckResultToPayPassword(int Result)
        {
            bool    Flag = false;
            DataRow dr   = dtBase.NewRow();

            switch (Result)
            {
            case 0:    //已操作成功
                Flag       = true;
                dr["type"] = "0";
                dr["mes"]  = ErrMessage.GetMessageInfoByCode("Err_001").Body;
                break;

            case 1:    //旧密码错误,请检查!
                dr["type"] = "2";
                dr["mes"]  = ErrMessage.GetMessageInfoByCode("Err_006").Body;
                break;

            case 2:    //该账户已被锁定!
                dr["type"] = "2";
                dr["mes"]  = ErrMessage.GetMessageInfoByCode("Err_007").Body;
                break;

            default:
                dr["type"] = "2";
                dr["mes"]  = ErrMessage.GetMessageInfoByCode("Err_004").Body;
                break;
            }
            dtBase.Rows.Add(dr);
            dtBase.AcceptChanges();
            return(Flag);
        }
示例#3
0
        public void Work()
        {
            try
            {
                filenames = new ConcurrentQueue <string>(Directory.GetFiles(_img_path, "*.jpg"));
            }
            catch (DirectoryNotFoundException exc)
            {
                ErrMessage?.Invoke("Directory doesn't exist!");
                return;
            }

            _stopSignal = new ManualResetEvent(false);
            var max_proc_count = Environment.ProcessorCount;

            Thread[] threads = new Thread[max_proc_count];
            for (int i = 0; i < max_proc_count; ++i)
            {
                InfoMessage?.Invoke("Statring thread");
                threads[i] = new Thread(worker);
                threads[i].Start();
            }

            InfoMessage?.Invoke("Done!");
        }
示例#4
0
        public void btnrepulse_Click(object sender, EventArgs e)
        {
            string reason =txt_reason.Text);
            if (reason.Length == 0)
            {
                errormessage.InnerText = ErrMessage.GetMessageInfoByCode("sumcoupon_201").Body;
                return;
            }
            if (reason.Length > 64)
            {
                errormessage.InnerText = ErrMessage.GetMessageInfoByCode("sumcoupon_202").Body;
                return;
            }

            //发放门店
            string ffstocode = base.LoginedUser.stocode;
            //发放人编号
            string ffcuser = base.LoginedUser.Name;
            //发放人id
            string ffcusercode = base.LoginedUser.empcode;

            //日志信息
            logentity.module = ErrMessage.GetMessageInfoByCode("sumcoupon_Menu").Body;
            logentity.pageurl = "coupon/repulse.aspx";
            logentity.otype = SystemEnum.LogOperateType.Audit;
            logentity.cuser = base.LoginedUser.Id;
            logentity.logcontent = string.Format(ErrMessage.GetMessageInfoByCode("sumcoupon_963").Body, base.LoginedUser.Id.ToString(), hidId.Value);
            DataTable dt = new bllsumcoupon().Audit("0", "0", base.LoginedUser.Id.ToString(), hidId.Value, "2", reason, ffstocode, ffcuser, ffcusercode, logentity);
            //显示结果
            if (ShowResult(dt, errormessage))
            {
                Script(this.Page, "if(parent.location.href!=null){parent.location.href=parent.location.href;}");
            }
        }
示例#5
0
        public async Task <ErrMessage> DEL_LENOVOSFTP()
        {
            ErrMessage rETURN = new ErrMessage();
            await Task.Run(() =>
            {
                SFTPHelper sftp   = new SFTPHelper("bjmft.lenovo.com", "22", "Ex_Ontim_P", "Ex_Ontim_P");
                string remotePath = "/856_Appendix/out/tmp";
                bool bl           = true;
                bool bl1          = true;
                Dictionary <string, string> dic = sftp.GetFileListFileName(remotePath, ".txt", ref bl);
                if (bl)
                {
                    dic = dic.OrderBy(r => r.Value).ToDictionary(r => r.Key, r => r.Value);
                    foreach (KeyValuePair <string, string> kvp in dic)
                    {
                        string extenname = kvp.Key;
                        sftp.Delete(remotePath + "/" + extenname);
                    }
                }
                Dictionary <string, string> dic1 = sftp.GetFileListFileName(remotePath, ".trigger", ref bl1);
                if (bl1)
                {
                    dic1 = dic1.OrderBy(r => r.Value).ToDictionary(r => r.Key, r => r.Value);
                    foreach (KeyValuePair <string, string> kvp in dic1)
                    {
                        string extenname = kvp.Key;
                        sftp.Delete(remotePath + "/" + extenname);
                    }
                }
            });

            rETURN.Err     = "执行完成";
            rETURN.success = true;
            return(rETURN);
        }
示例#6
0
        private void ProcessAMFResponse <T>(IAsyncResult asyncResult)
        {
            try
            {
                AsyncStreamSetInfo <T> asyncStreamSetInfo = (AsyncStreamSetInfo <T>)asyncResult.AsyncState;

                if (asyncStreamSetInfo.responseThreadConfigurator != null)
                {
                    asyncStreamSetInfo.responseThreadConfigurator();
                }

                HttpWebRequest  request  = asyncStreamSetInfo.request;
                HttpWebResponse response = (HttpWebResponse)request.EndGetResponse(asyncResult);

                if (Cookies != null)
                {
                    foreach (Cookie cookie in response.Cookies)
                    {
                        Cookies.Add(new Uri(GatewayUrl), cookie);
                    }
                }

                Stream        streamResponse = response.GetResponseStream();
                long          curTime        = DateTime.Now.Ticks;
                long          roundTrip      = (curTime - asyncStreamSetInfo.messageSentTime) / TimeSpan.TicksPerMillisecond;
                RequestParser parser         = new RequestParser();
                Request       responseObject = parser.readMessage(streamResponse);
                object[]      responseData   = (object[])responseObject.getRequestBodyData();
                V3Message     v3             = (V3Message)((IAdaptingType)responseData[0]).defaultAdapt();

                if (v3.isError)
                {
                    ErrMessage errorMessage = (ErrMessage)v3;
                    Fault      fault        = new Fault(errorMessage.faultString, errorMessage.faultDetail, errorMessage.faultCode);

                    if (asyncStreamSetInfo.responder != null)
                    {
                        asyncStreamSetInfo.responder.ErrorHandler(fault);
                    }

                    return;
                }

                IAdaptingType body   = (IAdaptingType)((AnonymousObject)((NamedObject)responseData[0]).TypedObject).Properties["body"];
                T             result = (T)body.adapt(typeof(T));

                if (asyncStreamSetInfo.responder != null)
                {
                    asyncStreamSetInfo.responder.ResponseHandler(result);
                }

                //  ProcessV3Message( v3, asyncStreamSetInfo.responder );
            }
            catch (Exception e)
            {
                AsyncStreamSetInfo <T> asyncStreamSetInfo = (AsyncStreamSetInfo <T>)asyncResult.AsyncState;
                ProccessException(e, asyncStreamSetInfo.responder);
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     this.PageTitle.Operate = ErrMessage.GetMessageInfoByCode("PageOperateReport").Body;
     if (!IsPostBack)
     {
         SearchToolBarAddJSClick("LinkSearch", "return dataloading();");
         txt_btime.Value = DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd 07:00:00");
         txt_etime.Value = DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd 07:00:00");
     }
 }
示例#8
0
        /// <summary>
        /// 检验表单数据
        /// </summary>
        /// <returns></returns>
        public string CheckPageInfo(string type, string lsid, string orderid, string buscode, string strcode, string shiftid, string tmcode, string personnum, string username, string userphone, string arrivetime, string opentime, string restime, string checkouttime, string gusetleavetime, string alltime, string allfoodtime, string conmoney, string status, string remark, string cuser, string uuser, out string spanids)
        {
            string strRetuen = string.Empty;

            spanids = string.Empty;
            //要验证的实体属性
            List <string> EName = new List <string>()
            {
            };
            //要验证的实体属性值
            List <string> EValue = new List <string>()
            {
            };
            //错误信息
            List <string> errorCode   = new List <string>();
            List <string> ControlName = new List <string>();

            //验证数据
            CheckValue <choorderEntity>(EName, EValue, ref errorCode, ref ControlName, new choorderEntity());
            //特殊验证写在下面

            if (errorCode.Count > 0)
            {
                strRetuen = ErrMessage.GetMessageInfoByListCode(errorCode);
                spanids   = ListTostring(ControlName);
            }
            else//组合对象数据
            {
                Entity                = new choorderEntity();
                Entity.lsid           = Helper.StringToLong(lsid);
                Entity.orderid        = Helper.StringToLong(orderid);
                Entity.buscode        = buscode;
                Entity.strcode        = strcode;
                Entity.shiftid        = Helper.StringToLong(shiftid);
                Entity.tmcode         = tmcode;
                Entity.personnum      = Helper.StringToInt(personnum);
                Entity.username       = username;
                Entity.userphone      = userphone;
                Entity.arrivetime     = arrivetime;
                Entity.opentime       = Helper.StringToDateTime(opentime);
                Entity.restime        = Helper.StringToDateTime(restime);
                Entity.checkouttime   = Helper.StringToDateTime(checkouttime);
                Entity.gusetleavetime = Helper.StringToDateTime(gusetleavetime);
                Entity.alltime        = Helper.StringToInt(alltime);
                Entity.allfoodtime    = Helper.StringToDateTime(allfoodtime);
                Entity.conmoney       = Helper.StringToDecimal(conmoney);
                Entity.status         = status;
                Entity.remark         = remark;
                Entity.cuser          = Helper.StringToLong(cuser);

                Entity.uuser = Helper.StringToLong(uuser);
            }
            return(strRetuen);
        }
示例#9
0
        /// <summary>
        /// 检验表单数据
        /// </summary>
        /// <returns></returns>
        public string CheckPageInfo(string type, string bwid, string serialNumber, string buscode, string strcode, string busTop, string sortNum, string busDate, string waitType, string userName, string tel, string waitTime, string remark, string status, string cuser, string uuser, string openid, out string spanids)
        {
            string strRetuen = string.Empty;

            spanids = string.Empty;
            //要验证的实体属性
            List <string> EName = new List <string>()
            {
            };
            //要验证的实体属性值
            List <string> EValue = new List <string>()
            {
            };
            //错误信息
            List <string> errorCode   = new List <string>();
            List <string> ControlName = new List <string>();

            //验证数据
            CheckValue <WX_busWaitEntity>(EName, EValue, ref errorCode, ref ControlName, new WX_busWaitEntity());
            //特殊验证写在下面

            if (errorCode.Count > 0)
            {
                strRetuen = ErrMessage.GetMessageInfoByListCode(errorCode);
                spanids   = ListTostring(ControlName);
            }
            else//组合对象数据
            {
                Entity              = new WX_busWaitEntity();
                Entity.bwid         = Helper.StringToLong(bwid);
                Entity.serialNumber = serialNumber;
                Entity.buscode      = buscode;
                Entity.strcode      = strcode;
                Entity.busTop       = Helper.StringToInt(busTop);
                Entity.sortNum      = sortNum;
                Entity.busDate      = Helper.StringToDateTime(busDate);
                Entity.waitType     = waitType;
                Entity.userName     = userName;
                Entity.tel          = tel;
                Entity.waitTime     = Helper.StringToDateTime(waitTime);
                Entity.remark       = remark;
                Entity.status       = status;
                Entity.cuser        = Helper.StringToLong(cuser);

                Entity.uuser = Helper.StringToLong(uuser);


                Entity.openid = openid;
            }
            return(strRetuen);
        }
示例#10
0
        /// <summary>
        /// 检验表单数据
        /// </summary>
        /// <returns></returns>
        public string CheckPageInfo(string type, string setreservationid, string stocode, string buscode, string ttcode, string maxdeposit, string methoddeposit, string nolimitdate, string daydeposit, string Duetype, string remark, string status, string cuser, string uuser, string btime, string etime, out string spanids)
        {
            string strRetuen = string.Empty;

            spanids = string.Empty;
            //要验证的实体属性
            List <string> EName = new List <string>()
            {
            };
            //要验证的实体属性值
            List <string> EValue = new List <string>()
            {
            };
            //错误信息
            List <string> errorCode   = new List <string>();
            List <string> ControlName = new List <string>();

            //验证数据
            CheckValue <WX_setreservationEntity>(EName, EValue, ref errorCode, ref ControlName, new WX_setreservationEntity());
            //特殊验证写在下面

            if (errorCode.Count > 0)
            {
                strRetuen = ErrMessage.GetMessageInfoByListCode(errorCode);
                spanids   = ListTostring(ControlName);
            }
            else//组合对象数据
            {
                Entity = new WX_setreservationEntity();
                Entity.setreservationid = Helper.StringToInt(setreservationid);
                Entity.stocode          = stocode;
                Entity.buscode          = buscode;
                Entity.ttcode           = ttcode;
                Entity.maxdeposit       = Helper.StringToInt(maxdeposit);
                Entity.methoddeposit    = methoddeposit;
                Entity.nolimitdate      = Helper.StringToInt(nolimitdate);
                Entity.daydeposit       = Helper.StringToInt(daydeposit);
                Entity.Duetype          = Duetype;
                Entity.remark           = remark;
                Entity.status           = status;
                Entity.cuser            = Helper.StringToLong(cuser);
                Entity.uuser            = Helper.StringToLong(uuser);



                Entity.btime = Helper.StringToDateTime(btime);
                Entity.etime = Helper.StringToDateTime(etime);
            }
            return(strRetuen);
        }
示例#11
0
    void Awake()
    {
        mTs = transform;

        GameObject gameManager = GameObject.Find("GameManager");

        if (gameManager == null)
        {
            return;
        }

        statusManager = gameManager.GetComponent <StatusManager>();
        uiManager     = gameManager.GetComponent <UIManager> ();
        errMsg        = uiManager.getErrMsg();
    }
示例#12
0
        private void worker()
        {
            string name;

            while (filenames.TryDequeue(out name))
            {
                if (_stopSignal.WaitOne(0))
                {
                    ErrMessage?.Invoke("Stopping Thread by signal");
                    return;
                }
                ResultEvent?.Invoke(Predict(ImageToTensor(name), name));
            }
            InfoMessage?.Invoke("Stopping thread normally");
        }
示例#13
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int num = DataConverter.CLng(base.Request.QueryString["MessageID"]);

            if (num == 0)
            {
                num = 0x3e7;
            }
            PEExceptionType exceptionType = (PEExceptionType)num;
            ErrMessage      message       = ResourceManager.GetMessage(exceptionType);

            this.LtrTitle.Text            = message.Title;
            this.LnkErrorMessage.Text     = message.Body;
            this.LnkReturnUrl.NavigateUrl = "javascript:history.back();";
        }
示例#14
0
        /// <summary>
        /// 检验表单数据
        /// </summary>
        /// <returns></returns>
        public string CheckPageInfo(string type, string lsid, string distypeid, string buscode, string stocode, string pdistypecode, string distypecode, string dispath, string distypename, string metcode, string fincode, string maxdiscount, string busSort, string status, string cuser, string uuser, out string spanids)
        {
            string strRetuen = string.Empty;

            spanids = string.Empty;
            //要验证的实体属性
            List <string> EName = new List <string>()
            {
            };
            //要验证的实体属性值
            List <string> EValue = new List <string>()
            {
            };
            //错误信息
            List <string> errorCode   = new List <string>();
            List <string> ControlName = new List <string>();

            //验证数据
            CheckValue <DisheTypeEntity>(EName, EValue, ref errorCode, ref ControlName, new DisheTypeEntity());
            //特殊验证写在下面

            if (errorCode.Count > 0)
            {
                strRetuen = ErrMessage.GetMessageInfoByListCode(errorCode);
                spanids   = ListTostring(ControlName);
            }
            else//组合对象数据
            {
                Entity              = new DisheTypeEntity();
                Entity.lsid         = Helper.StringToLong(lsid);
                Entity.distypeid    = Helper.StringToLong(distypeid);
                Entity.buscode      = buscode;
                Entity.stocode      = stocode;
                Entity.pdistypecode = pdistypecode;
                Entity.distypecode  = distypecode;
                Entity.dispath      = dispath;
                Entity.distypename  = distypename;
                Entity.metcode      = metcode;
                Entity.fincode      = fincode;
                Entity.maxdiscount  = Helper.StringToInt(maxdiscount);
                Entity.busSort      = Helper.StringToInt(busSort);
                Entity.status       = status;
                Entity.cuser        = Helper.StringToLong(cuser);

                Entity.uuser = Helper.StringToLong(uuser);
            }
            return(strRetuen);
        }
示例#15
0
        /// <summary>
        /// 检验表单数据
        /// </summary>
        /// <returns></returns>
        public string CheckPageInfo(string type, string id, string openid, string subscribe, string nickname, string sex, string language, string cityid, string provinceid, string country, string mobile, string headimgurl, string subscribe_scene, string upwd, string notpwd, string wxopenid, out string spanids)
        {
            string strRetuen = string.Empty;

            spanids = string.Empty;
            //要验证的实体属性
            List <string> EName = new List <string>()
            {
            };
            //要验证的实体属性值
            List <string> EValue = new List <string>()
            {
            };
            //错误信息
            List <string> errorCode   = new List <string>();
            List <string> ControlName = new List <string>();

            //验证数据
            CheckValue <WX_members_wxEntity>(EName, EValue, ref errorCode, ref ControlName, new WX_members_wxEntity());
            //特殊验证写在下面

            if (errorCode.Count > 0)
            {
                strRetuen = ErrMessage.GetMessageInfoByListCode(errorCode);
                spanids   = ListTostring(ControlName);
            }
            else//组合对象数据
            {
                Entity                 = new WX_members_wxEntity();
                Entity.id              = Helper.StringToLong(id);
                Entity.openid          = openid;
                Entity.subscribe       = subscribe;
                Entity.nickname        = nickname;
                Entity.sex             = sex;
                Entity.language        = language;
                Entity.cityid          = cityid;
                Entity.provinceid      = provinceid;
                Entity.country         = country;
                Entity.mobile          = mobile;
                Entity.headimgurl      = headimgurl;
                Entity.subscribe_scene = subscribe_scene;

                Entity.upwd     = upwd;
                Entity.notpwd   = notpwd;
                Entity.wxopenid = wxopenid;
            }
            return(strRetuen);
        }
示例#16
0
        /// <summary>
        /// 检验表单数据
        /// </summary>
        /// <returns></returns>
        public string CheckPageInfo(string type, string ID, string stocode, string buscode, string desDate, string desTime, string dicid, string personNum, string metcode, string userName, string tel, string remark, string status, string dishesremark, string TerminalType, string openid, out string spanids)
        {
            string strRetuen = string.Empty;

            spanids = string.Empty;
            //要验证的实体属性
            List <string> EName = new List <string>()
            {
            };
            //要验证的实体属性值
            List <string> EValue = new List <string>()
            {
            };
            //错误信息
            List <string> errorCode   = new List <string>();
            List <string> ControlName = new List <string>();

            //验证数据
            CheckValue <WX_busDestineEntity>(EName, EValue, ref errorCode, ref ControlName, new WX_busDestineEntity());
            //特殊验证写在下面

            if (errorCode.Count > 0)
            {
                strRetuen = ErrMessage.GetMessageInfoByListCode(errorCode);
                spanids   = ListTostring(ControlName);
            }
            else//组合对象数据
            {
                Entity           = new WX_busDestineEntity();
                Entity.ID        = Helper.StringToLong(ID);
                Entity.stocode   = stocode;
                Entity.buscode   = buscode;
                Entity.desDate   = Helper.StringToDateTime(desDate);
                Entity.desTime   = desTime;
                Entity.dicid     = Helper.StringToLong(dicid);
                Entity.personNum = Helper.StringToInt(personNum);
                Entity.metcode   = metcode;
                Entity.userName  = userName;
                Entity.tel       = tel;
                Entity.remark    = remark;
                Entity.status    = status;

                Entity.dishesremark = dishesremark;
                Entity.TerminalType = TerminalType;
                Entity.openid       = openid;
            }
            return(strRetuen);
        }
示例#17
0
        public async Task <IActionResult> Update(int id, string price, DateTime releaseDate, string action)
        {
            ErrMessage msg = new ErrMessage(id);

            if (!Regex.IsMatch(price, @"^([1-9]\d*|0)(\.\d+)?$"))
            {
                msg.Message = "価格は数値を入力してください。";
                return(BadRequest(msg));
            }

            if (releaseDate.CompareTo(DateTime.MinValue) == 0)
            {
                msg.Message = "リリース日時は正しい日付を入力してください。";
                return(BadRequest(msg));
            }

            if (action != "edit")
            {
                msg.Message = "編集以外の操作は無効です。";
            }

            Movie updateMovie = new Movie();

            try
            {
                updateMovie = await _context.Movie.SingleOrDefaultAsync(m => m.ID == id);

                updateMovie.Price       = Decimal.Parse(price);
                updateMovie.ReleaseDate = releaseDate;
                _context.Movie.Update(updateMovie);
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!MovieExists(id))
                {
                    msg.Message = "ID=" + id + "は存在しません。";
                    return(NotFound(msg));
                }
                else
                {
                    throw;
                }
            }

            return(new ObjectResult(updateMovie));
        }
示例#18
0
        /// <summary>
        /// 检验表单数据
        /// </summary>
        /// <returns></returns>
        public string CheckPageInfo(string type, string timeid, string stocode, string buscode, string timename, string timevalue, string remark, string status, string cuser, string uuser, string btime, string etime, out string spanids)
        {
            string strRetuen = string.Empty;

            spanids = string.Empty;
            //要验证的实体属性
            List <string> EName = new List <string>()
            {
            };
            //要验证的实体属性值
            List <string> EValue = new List <string>()
            {
            };
            //错误信息
            List <string> errorCode   = new List <string>();
            List <string> ControlName = new List <string>();

            //验证数据
            CheckValue <WX_settimeEntity>(EName, EValue, ref errorCode, ref ControlName, new WX_settimeEntity());
            //特殊验证写在下面

            if (errorCode.Count > 0)
            {
                strRetuen = ErrMessage.GetMessageInfoByListCode(errorCode);
                spanids   = ListTostring(ControlName);
            }
            else//组合对象数据
            {
                Entity           = new WX_settimeEntity();
                Entity.timeid    = Helper.StringToInt(timeid);
                Entity.stocode   = stocode;
                Entity.buscode   = buscode;
                Entity.timename  = timename;
                Entity.timevalue = timevalue;
                Entity.remark    = remark;
                Entity.status    = status;

                Entity.cuser = Helper.StringToLong(cuser);

                Entity.uuser = Helper.StringToLong(uuser);

                Entity.btime = Helper.StringToDateTime(btime);
                Entity.etime = Helper.StringToDateTime(etime);
            }
            return(strRetuen);
        }
示例#19
0
        /// <summary>
        /// 检验表单数据
        /// </summary>
        /// <returns></returns>
        public string CheckPageInfo(string type, string lineid, string linecode, string stocode, string buscode, string ttcode, string maxperson, string minperosn, string Turncycle, string remark, string status, string cuser, string uuser, out string spanids)
        {
            string strRetuen = string.Empty;

            spanids = string.Empty;
            //要验证的实体属性
            List <string> EName = new List <string>()
            {
            };
            //要验证的实体属性值
            List <string> EValue = new List <string>()
            {
            };
            //错误信息
            List <string> errorCode   = new List <string>();
            List <string> ControlName = new List <string>();

            //验证数据
            CheckValue <WX_setlineUpEntity>(EName, EValue, ref errorCode, ref ControlName, new WX_setlineUpEntity());
            //特殊验证写在下面

            if (errorCode.Count > 0)
            {
                strRetuen = ErrMessage.GetMessageInfoByListCode(errorCode);
                spanids   = ListTostring(ControlName);
            }
            else//组合对象数据
            {
                Entity           = new WX_setlineUpEntity();
                Entity.lineid    = Helper.StringToLong(lineid);
                Entity.linecode  = linecode;
                Entity.stocode   = stocode;
                Entity.buscode   = buscode;
                Entity.ttcode    = ttcode;
                Entity.maxperson = Helper.StringToInt(maxperson);
                Entity.minperosn = Helper.StringToInt(minperosn);
                Entity.Turncycle = Helper.StringToInt(Turncycle);
                Entity.remark    = remark;
                Entity.status    = status;
                Entity.cuser     = Helper.StringToLong(cuser);
                Entity.uuser     = Helper.StringToLong(uuser);
            }
            return(strRetuen);
        }
示例#20
0
        //public void Stop() => _ct.Cancel();
        private void worker()
        {
            string name;

            while (filenames.TryDequeue(out name))
            {
                //Console.WriteLine("here working");
                if (_ct.IsCancellationRequested || _stopSignal.WaitOne(0))
                {
                    Console.WriteLine("sssss");
                    ErrMessage?.Invoke("Stopping Thread by signal");
                    return;
                }
                //Console.WriteLine("here after");
                var current_res = Predict_with_db(ImageToTensor(name), name);
                ResultEvent?.Invoke(current_res);
            }
            InfoMessage?.Invoke("Stopping thread normally");
        }
示例#21
0
        /// <summary>
        /// 检测删除数据库执行结果
        /// </summary>
        /// <param name="Result"></param>
        /// <param name="Mescode"></param>
        /// <returns></returns>
        public bool CheckDeleteResult(int Result, string Mescode)
        {
            bool    Flag = false;
            DataRow dr   = dtBase.NewRow();

            switch (Result)
            {
            case 0:
                Flag       = true;
                dr["type"] = "0";
                dr["mes"]  = ErrMessage.GetMessageInfoByCode("Err_001").Body;
                break;

            case 1:
                dr["type"] = "1";
                dr["mes"]  = ErrMessage.GetMessageInfoByCode(Mescode).Body;
                break;

            case 100:
                dr["type"] = "2";
                dr["mes"]  = Mescode;
                break;

            case 2:
                dr["type"] = "2";
                dr["mes"]  = ErrMessage.GetMessageInfoByCode(Mescode).Body;
                break;

            case 99:
                Flag       = true;
                dr["type"] = "0";
                dr["mes"]  = Mescode;
                break;

            default:
                dr["type"] = "2";
                dr["mes"]  = ErrMessage.GetMessageInfoByCode(Mescode).Body;
                break;
            }
            dtBase.Rows.Add(dr);
            dtBase.AcceptChanges();
            return(Flag);
        }
示例#22
0
        /// <summary>
        /// 检验表单数据
        /// </summary>
        /// <returns></returns>
        public string CheckPageInfo(string type, string id, string stocode, string buscode, string remake, string sort, string cuser, string uuser, string status, out string spanids)
        {
            string strRetuen = string.Empty;

            spanids = string.Empty;
            //要验证的实体属性
            List <string> EName = new List <string>()
            {
            };
            //要验证的实体属性值
            List <string> EValue = new List <string>()
            {
            };
            //错误信息
            List <string> errorCode   = new List <string>();
            List <string> ControlName = new List <string>();

            //验证数据
            CheckValue <WX_reserveremakeEntity>(EName, EValue, ref errorCode, ref ControlName, new WX_reserveremakeEntity());
            //特殊验证写在下面

            if (errorCode.Count > 0)
            {
                strRetuen = ErrMessage.GetMessageInfoByListCode(errorCode);
                spanids   = ListTostring(ControlName);
            }
            else//组合对象数据
            {
                Entity         = new WX_reserveremakeEntity();
                Entity.id      = Helper.StringToInt(id);
                Entity.stocode = stocode;
                Entity.buscode = buscode;
                Entity.remake  = remake;
                Entity.sort    = Helper.StringToInt(sort);
                Entity.cuser   = Helper.StringToLong(cuser);

                Entity.uuser = Helper.StringToLong(uuser);

                Entity.status = status;
            }
            return(strRetuen);
        }
示例#23
0
        public void setResponseBodyData(object obj)
        {
            //if( Log.isLogging( LoggingConstants.DEBUG ) && ( obj != null ) )
            //	Log.log( LoggingConstants.DEBUG, "AMFMessage:setResponseBodyData type: " + obj.GetType() + " object: " + obj );

            if ((obj is Exception) && !(obj is ServiceException))
            {
                obj = new ServiceException(obj.ToString(), (Exception)obj);
                //debugCall.setError( currentBody );
            }

            if ((obj is Exception) && isV3Request())
            {
                obj = new ErrMessage(null, (Exception)obj);
            }

            //debugCall.setReturnValue( currentBody, obj );
            bodyParts[currentBody].responseDataObject = obj;
            responseBodies.Add(bodyParts[currentBody]);
        }
示例#24
0
        /// <summary>
        /// 检验表单数据
        /// </summary>
        /// <returns></returns>
        public string CheckPageInfo(string type, string setreservationid, string stocode, string buscode, string isnetwork, string isqueue, string isaddfood, string festival, string weekend, string ntime, out string spanids)
        {
            string strRetuen = string.Empty;

            spanids = string.Empty;
            //要验证的实体属性
            List <string> EName = new List <string>()
            {
            };
            //要验证的实体属性值
            List <string> EValue = new List <string>()
            {
            };
            //错误信息
            List <string> errorCode   = new List <string>();
            List <string> ControlName = new List <string>();

            //验证数据
            CheckValue <WX_stosetEntity>(EName, EValue, ref errorCode, ref ControlName, new WX_stosetEntity());
            //特殊验证写在下面

            if (errorCode.Count > 0)
            {
                strRetuen = ErrMessage.GetMessageInfoByListCode(errorCode);
                spanids   = ListTostring(ControlName);
            }
            else//组合对象数据
            {
                Entity = new WX_stosetEntity();
                Entity.setreservationid = Helper.StringToInt(setreservationid);
                Entity.stocode          = stocode;
                Entity.buscode          = buscode;
                Entity.isnetwork        = Helper.StringToInt(isnetwork);
                Entity.isqueue          = Helper.StringToInt(isqueue);
                Entity.isaddfood        = Helper.StringToInt(isaddfood);
                Entity.festival         = festival;
                Entity.weekend          = weekend;
                Entity.ntime            = Helper.StringToDateTime(ntime);
            }
            return(strRetuen);
        }
        private bool CheckWhere()
        {
            bool Flag = true;

            bdate =txt_btime.Value);
            edate =txt_etime.Value);
            if (bdate.Length == 0 || edate.Length == 0)
            {
                Script(Page, "pcLayerMsg('" + ErrMessage.GetMessageInfoByCode("StoreReports_date").Body + "');");
                Flag = false;
            }

            DateTime btime = StringHelper.StringToDateTime(bdate);
            DateTime etime = StringHelper.StringToDateTime(edate);
            if ((etime - btime).TotalDays > 366)
            {
                Script(Page, "pcLayerMsg('" + ErrMessage.GetMessageInfoByCode("StoreReports_dateerror").Body + "');");
                Flag = false;
            }

            return Flag;
        }
示例#26
0
        /// <summary>
        /// 检验表单数据
        /// </summary>
        /// <returns></returns>
        public string CheckPageInfo(string type, string id, string openid, string msgtype, string status, string msgdetails, string title, out string spanids)
        {
            string strRetuen = string.Empty;

            spanids = string.Empty;
            //要验证的实体属性
            List <string> EName = new List <string>()
            {
            };
            //要验证的实体属性值
            List <string> EValue = new List <string>()
            {
            };
            //错误信息
            List <string> errorCode   = new List <string>();
            List <string> ControlName = new List <string>();

            //验证数据
            CheckValue <WX_usermessageEntity>(EName, EValue, ref errorCode, ref ControlName, new WX_usermessageEntity());
            //特殊验证写在下面

            if (errorCode.Count > 0)
            {
                strRetuen = ErrMessage.GetMessageInfoByListCode(errorCode);
                spanids   = ListTostring(ControlName);
            }
            else//组合对象数据
            {
                Entity            = new WX_usermessageEntity();
                Entity.id         = Helper.StringToLong(id);
                Entity.openid     = openid;
                Entity.msgtype    = msgtype;
                Entity.status     = status;
                Entity.msgdetails = msgdetails;
                Entity.title      = title;
            }
            return(strRetuen);
        }
示例#27
0
文件: blldishes.cs 项目: hmwenwen/wen
        /// <summary>
        /// 检验表单数据
        /// </summary>
        /// <returns></returns>
        public string CheckPageInfo(string type, string lsid, string disid, string buscode, string stocode, string discode, string disname, string melcode, string disothername, string distypecode, string quickcode, string customcode, string unit, string price, string memberprice, string ismultiprice, string costprice, string iscostbyingredient, string pushmoney, string matclscode, string matcode, string extcode, string fincode, string dcode, string kitcode, string ecode, string maketime, string qrcode, string dispicture, string remark, string isentity, string entitydefcount, string entityprice, string iscanmodifyprice, string isneedweigh, string isneedmethod, string iscaninventory, string iscancustom, string iscandeposit, string isallowmemberprice, string isattachcalculate, string isclipcoupons, string iscombo, string iscombooptional, string isnonoperating, string status, string busSort, string warcode, string cuser, string uuser, out string spanids)
        {
            string strRetuen = string.Empty;

            spanids = string.Empty;
            //要验证的实体属性
            List <string> EName = new List <string>()
            {
            };
            //要验证的实体属性值
            List <string> EValue = new List <string>()
            {
            };
            //错误信息
            List <string> errorCode   = new List <string>();
            List <string> ControlName = new List <string>();

            //验证数据
            CheckValue <dishesEntity>(EName, EValue, ref errorCode, ref ControlName, new dishesEntity());
            //特殊验证写在下面

            if (errorCode.Count > 0)
            {
                strRetuen = ErrMessage.GetMessageInfoByListCode(errorCode);
                spanids   = ListTostring(ControlName);
            }
            else//组合对象数据
            {
                Entity                    = new dishesEntity();
                Entity.lsid               = Helper.StringToLong(lsid);
                Entity.disid              = Helper.StringToLong(disid);
                Entity.buscode            = buscode;
                Entity.stocode            = stocode;
                Entity.discode            = discode;
                Entity.disname            = disname;
                Entity.melcode            = melcode;
                Entity.disothername       = disothername;
                Entity.distypecode        = distypecode;
                Entity.quickcode          = quickcode;
                Entity.customcode         = customcode;
                Entity.unit               = unit;
                Entity.price              = Helper.StringToDecimal(price);
                Entity.memberprice        = Helper.StringToDecimal(memberprice);
                Entity.ismultiprice       = ismultiprice;
                Entity.costprice          = Helper.StringToDecimal(costprice);
                Entity.iscostbyingredient = iscostbyingredient;
                Entity.pushmoney          = Helper.StringToDecimal(pushmoney);
                Entity.matclscode         = matclscode;
                Entity.matcode            = matcode;
                Entity.extcode            = extcode;
                Entity.fincode            = fincode;
                Entity.dcode              = dcode;
                Entity.kitcode            = kitcode;
                Entity.ecode              = ecode;
                Entity.maketime           = Helper.StringToInt(maketime);
                Entity.qrcode             = qrcode;
                Entity.dispicture         = dispicture;
                Entity.remark             = remark;
                Entity.isentity           = isentity;
                Entity.entitydefcount     = Helper.StringToInt(entitydefcount);
                Entity.entityprice        = Helper.StringToDecimal(entityprice);
                Entity.iscanmodifyprice   = iscanmodifyprice;
                Entity.isneedweigh        = isneedweigh;
                Entity.isneedmethod       = isneedmethod;
                Entity.iscaninventory     = iscaninventory;
                Entity.iscancustom        = iscancustom;
                Entity.iscandeposit       = iscandeposit;
                Entity.isallowmemberprice = isallowmemberprice;
                Entity.isattachcalculate  = isattachcalculate;
                Entity.isclipcoupons      = isclipcoupons;
                Entity.iscombo            = iscombo;
                Entity.iscombooptional    = iscombooptional;
                Entity.isnonoperating     = isnonoperating;
                Entity.status             = status;
                Entity.busSort            = Helper.StringToInt(busSort);
                Entity.warcode            = warcode;
                Entity.cuser              = Helper.StringToLong(cuser);

                Entity.uuser = Helper.StringToLong(uuser);
            }
            return(strRetuen);
        }
示例#28
0
        /// <summary>
        /// 检验表单数据
        /// </summary>
        /// <returns></returns>
        public string CheckPageInfo(string type, string id, string detailid, string buscode, string stocode, string orderid, string personcount, string opentime, string checkouttime, string alltime, string endtime, string shiftid, string tmcode, string tmname, string tablecodes, string combinenum, string allfoodtime, string pushfoodtime, string pushfoodstate, string closeaccount, string closeCodes, string calltime, string userid, string ordertime, string surchargeamount, string ocostprice, string conmoney, string status, string detailcode, string memcode, string desCode, string desctime, string printcount, string remark, string metname, string pushid, string pushname, string cuser, string ispresented, string presentedcode, string cardcode, string mobile, string coupons, string metcode, string ttcode, string customer, string amanagerid, string amanagername, string olossmoney, string detailtype, string predishemoney, string TerminalType, string depcode, string depname, out string spanids)
        {
            string strRetuen = string.Empty;

            spanids = string.Empty;
            //要验证的实体属性
            List <string> EName = new List <string>()
            {
            };
            //要验证的实体属性值
            List <string> EValue = new List <string>()
            {
            };
            //错误信息
            List <string> errorCode   = new List <string>();
            List <string> ControlName = new List <string>();

            //验证数据
            CheckValue <choorderdetailEntity>(EName, EValue, ref errorCode, ref ControlName, new choorderdetailEntity());
            //特殊验证写在下面

            if (errorCode.Count > 0)
            {
                strRetuen = ErrMessage.GetMessageInfoByListCode(errorCode);
                spanids   = ListTostring(ControlName);
            }
            else//组合对象数据
            {
                Entity                 = new choorderdetailEntity();
                Entity.id              = Helper.StringToLong(id);
                Entity.detailid        = Helper.StringToLong(detailid);
                Entity.buscode         = buscode;
                Entity.stocode         = stocode;
                Entity.orderid         = Helper.StringToLong(orderid);
                Entity.personcount     = Helper.StringToInt(personcount);
                Entity.opentime        = Helper.StringToDateTime(opentime);
                Entity.checkouttime    = Helper.StringToDateTime(checkouttime);
                Entity.alltime         = Helper.StringToInt(alltime);
                Entity.endtime         = Helper.StringToDateTime(endtime);
                Entity.shiftid         = Helper.StringToLong(shiftid);
                Entity.tmcode          = tmcode;
                Entity.tmname          = tmname;
                Entity.tablecodes      = tablecodes;
                Entity.combinenum      = Helper.StringToInt(combinenum);
                Entity.allfoodtime     = Helper.StringToDateTime(allfoodtime);
                Entity.pushfoodtime    = Helper.StringToDateTime(pushfoodtime);
                Entity.pushfoodstate   = pushfoodstate;
                Entity.closeaccount    = closeaccount;
                Entity.closeCodes      = closeCodes;
                Entity.calltime        = Helper.StringToDateTime(calltime);
                Entity.userid          = Helper.StringToLong(userid);
                Entity.ordertime       = Helper.StringToDateTime(ordertime);
                Entity.surchargeamount = Helper.StringToDecimal(surchargeamount);
                Entity.ocostprice      = Helper.StringToDecimal(ocostprice);
                Entity.conmoney        = Helper.StringToDecimal(conmoney);
                Entity.status          = status;
                Entity.detailcode      = detailcode;
                Entity.memcode         = memcode;
                Entity.desCode         = desCode;
                Entity.desctime        = Helper.StringToDateTime(desctime);
                Entity.printcount      = Helper.StringToInt(printcount);
                Entity.remark          = remark;
                Entity.metname         = metname;
                Entity.pushid          = pushid;
                Entity.pushname        = pushname;
                Entity.cuser           = Helper.StringToLong(cuser);

                Entity.ispresented   = ispresented;
                Entity.presentedcode = presentedcode;
                Entity.cardcode      = cardcode;
                Entity.mobile        = mobile;
                Entity.coupons       = coupons;
                Entity.metcode       = metcode;
                Entity.ttcode        = ttcode;
                Entity.customer      = customer;
                Entity.amanagerid    = amanagerid;
                Entity.amanagername  = amanagername;
                Entity.olossmoney    = Helper.StringToDecimal(olossmoney);
                Entity.detailtype    = detailtype;
                Entity.predishemoney = Helper.StringToDecimal(predishemoney);
                Entity.TerminalType  = TerminalType;
                Entity.depcode       = depcode;
                Entity.depname       = depname;
            }
            return(strRetuen);
        }
示例#29
0
        /// <summary>
        /// 检测数据库执行结果(0已操作成功,1记录已存在,2操作失败,3请选择要操作的记录,4当前选择仓库设置已存在)
        /// </summary>
        /// <param name="Result"></param>
        /// <param name="dr"></param>
        public bool CheckResult(int Result)
        {
            bool    Flag = false;
            DataRow dr   = dtBase.NewRow();

            switch (Result)
            {
            case 0:    //已操作成功
                Flag       = true;
                dr["type"] = "0";
                dr["mes"]  = ErrMessage.GetMessageInfoByCode("Err_001").Body;
                break;

            case 1:    //记录已存在,请检查!
                dr["type"] = "2";
                dr["mes"]  = ErrMessage.GetMessageInfoByCode("Err_002").Body;
                break;

            case 2:    //操作失败,请重试或联系管理员!
                dr["type"] = "2";
                dr["mes"]  = ErrMessage.GetMessageInfoByCode("Err_003").Body;
                break;

            case 3:    //请选择要操作的记录
                dr["type"] = "2";
                dr["mes"]  = ErrMessage.GetMessageInfoByCode("Err_004").Body;
                break;

            case 4:    //当前选择仓库设置已存在,请查证-盘点设置用的
                dr["type"] = "2";
                dr["mes"]  = ErrMessage.GetMessageInfoByCode("Err_033").Body;
                break;

            case 5:    //打印订单编号不能为空
                dr["type"] = "2";
                dr["mes"]  = ErrMessage.GetMessageInfoByCode("Err_045").Body;
                break;

            case 6:    //打印订单菜品为空
                dr["type"] = "2";
                dr["mes"]  = ErrMessage.GetMessageInfoByCode("Err_046").Body;
                break;

            case 7:
                dr["type"] = "2";
                dr["mes"]  = ErrMessage.GetMessageInfoByCode("Err_146").Body;
                break;

            case -1:
                dr["type"] = "2";
                dr["mes"]  = ErrMessage.GetMessageInfoByCode("Err_064").Body;
                break;

            default:
                dr["type"] = "2";
                dr["mes"]  = ErrMessage.GetMessageInfoByCode("Err_004").Body;
                break;
            }
            dtBase.Rows.Add(dr);
            dtBase.AcceptChanges();
            return(Flag);
        }
示例#30
0
        /// <summary>
        /// 检验表单数据
        /// </summary>
        /// <returns></returns>
        public string CheckPageInfo(string type, string lsid, string orderdishesid, string buscode, string stocode, string orderid, string detailid, string distypecode, string dtypecode, string melcode, string discode, string disname, string disothername, string disnum, string disnumconst, string addnum, string isneedmethod, string distacode, string distaname, string ordertime, string addtime, string calltime, string pushfoodtime, string pushfoodstate, string isentity, string entitydefcount, string entityprice, string singlenum, string singleAllmoney, string totaladdmoney, string totaladdmoneydiscount, string allmoney, string allmoneydiscount, string memberallmoney, string resultallmoney, string packageaddmoney, string ispackage, string iscanout, string isout, string refundNum, string refundaddnum, string oneprice, string memberprice, string costprice, string methodmoney, string methodmoneydiscount, string attachmoney, string pushmoney, string ismember, string ispre, string pretype, string dispcode, string discountratemax, string discountrate, string premoney, string precheck, string checktime, string ismustconsume, string mustconsumenum, string iscaninventory, string isallowmemberprice, string isattachcalculate, string isclipcoupons, string isnonoperating, string iscombooptional, string isneedweigh, string iscanmodifyprice, string matcode, string cguid, string pcguid, string porderdishesid, string comdiscode, string comgcode, string composetype, string allowkinds, string allowcount, string allowamount, string usedisdefaultamount, string usedismaxamount, string unit, string extcode, string fincode, string dcode, string kitcode, string ecode, string warcode, string totmcode, string totmname, string todetailid, string status, string makestatus, string operaretype, string isdiscount, string priceispre, string ispresented, string pecode, string pename, string prereason, string prereasontype, string remark, string orderremark, string gguid, string nopreremark, string storeupdated, string cuser, string comprice, string cusername, string tottcode, string metname, string metcode, string detailcode, string tmopentime, string chomac, string orderno, string subtype, out string spanids)
        {
            string strRetuen = string.Empty;

            spanids = string.Empty;
            //要验证的实体属性
            List <string> EName = new List <string>()
            {
            };
            //要验证的实体属性值
            List <string> EValue = new List <string>()
            {
            };
            //错误信息
            List <string> errorCode   = new List <string>();
            List <string> ControlName = new List <string>();

            //验证数据
            CheckValue <choorderdishesEntity>(EName, EValue, ref errorCode, ref ControlName, new choorderdishesEntity());
            //特殊验证写在下面

            if (errorCode.Count > 0)
            {
                strRetuen = ErrMessage.GetMessageInfoByListCode(errorCode);
                spanids   = ListTostring(ControlName);
            }
            else//组合对象数据
            {
                Entity                       = new choorderdishesEntity();
                Entity.lsid                  = Helper.StringToLong(lsid);
                Entity.orderdishesid         = Helper.StringToLong(orderdishesid);
                Entity.buscode               = buscode;
                Entity.stocode               = stocode;
                Entity.orderid               = Helper.StringToLong(orderid);
                Entity.detailid              = Helper.StringToLong(detailid);
                Entity.distypecode           = distypecode;
                Entity.dtypecode             = dtypecode;
                Entity.melcode               = melcode;
                Entity.discode               = discode;
                Entity.disname               = disname;
                Entity.disothername          = disothername;
                Entity.disnum                = Helper.StringToDecimal(disnum);
                Entity.disnumconst           = Helper.StringToDecimal(disnumconst);
                Entity.addnum                = Helper.StringToDecimal(addnum);
                Entity.isneedmethod          = isneedmethod;
                Entity.distacode             = distacode;
                Entity.distaname             = distaname;
                Entity.ordertime             = Helper.StringToDateTime(ordertime);
                Entity.addtime               = Helper.StringToDateTime(addtime);
                Entity.calltime              = Helper.StringToDateTime(calltime);
                Entity.pushfoodtime          = Helper.StringToDateTime(pushfoodtime);
                Entity.pushfoodstate         = Helper.StringToInt(pushfoodstate);
                Entity.isentity              = isentity;
                Entity.entitydefcount        = Helper.StringToInt(entitydefcount);
                Entity.entityprice           = Helper.StringToDecimal(entityprice);
                Entity.singlenum             = Helper.StringToInt(singlenum);
                Entity.singleAllmoney        = Helper.StringToDecimal(singleAllmoney);
                Entity.totaladdmoney         = Helper.StringToDecimal(totaladdmoney);
                Entity.totaladdmoneydiscount = Helper.StringToDecimal(totaladdmoneydiscount);
                Entity.allmoney              = Helper.StringToDecimal(allmoney);
                Entity.allmoneydiscount      = Helper.StringToDecimal(allmoneydiscount);
                Entity.memberallmoney        = Helper.StringToDecimal(memberallmoney);
                Entity.resultallmoney        = Helper.StringToDecimal(resultallmoney);
                Entity.packageaddmoney       = Helper.StringToDecimal(packageaddmoney);
                Entity.ispackage             = ispackage;
                Entity.iscanout              = iscanout;
                Entity.isout                 = isout;
                Entity.refundNum             = Helper.StringToDecimal(refundNum);
                Entity.refundaddnum          = Helper.StringToDecimal(refundaddnum);
                Entity.oneprice              = Helper.StringToDecimal(oneprice);
                Entity.memberprice           = Helper.StringToDecimal(memberprice);
                Entity.costprice             = Helper.StringToDecimal(costprice);
                Entity.methodmoney           = Helper.StringToDecimal(methodmoney);
                Entity.methodmoneydiscount   = Helper.StringToDecimal(methodmoneydiscount);
                Entity.attachmoney           = Helper.StringToDecimal(attachmoney);
                Entity.pushmoney             = Helper.StringToDecimal(pushmoney);
                Entity.ismember              = ismember;
                Entity.ispre                 = ispre;
                Entity.pretype               = pretype;
                Entity.dispcode              = dispcode;
                Entity.discountratemax       = Helper.StringToDecimal(discountratemax);
                Entity.discountrate          = Helper.StringToDecimal(discountrate);
                Entity.premoney              = Helper.StringToDecimal(premoney);
                Entity.precheck              = precheck;
                Entity.checktime             = Helper.StringToDateTime(checktime);
                Entity.ismustconsume         = ismustconsume;
                Entity.mustconsumenum        = Helper.StringToDecimal(mustconsumenum);
                Entity.iscaninventory        = iscaninventory;
                Entity.isallowmemberprice    = isallowmemberprice;
                Entity.isattachcalculate     = isattachcalculate;
                Entity.isclipcoupons         = isclipcoupons;
                Entity.isnonoperating        = isnonoperating;
                Entity.iscombooptional       = iscombooptional;
                Entity.isneedweigh           = isneedweigh;
                Entity.iscanmodifyprice      = iscanmodifyprice;
                Entity.matcode               = matcode;
                Entity.cguid                 = cguid;
                Entity.pcguid                = pcguid;
                Entity.porderdishesid        = Helper.StringToLong(porderdishesid);
                Entity.comdiscode            = comdiscode;
                Entity.comgcode              = comgcode;
                Entity.composetype           = composetype;
                Entity.allowkinds            = Helper.StringToDecimal(allowkinds);
                Entity.allowcount            = Helper.StringToDecimal(allowcount);
                Entity.allowamount           = Helper.StringToDecimal(allowamount);
                Entity.usedisdefaultamount   = Helper.StringToDecimal(usedisdefaultamount);
                Entity.usedismaxamount       = Helper.StringToDecimal(usedismaxamount);
                Entity.unit                  = unit;
                Entity.extcode               = extcode;
                Entity.fincode               = fincode;
                Entity.dcode                 = dcode;
                Entity.kitcode               = kitcode;
                Entity.ecode                 = ecode;
                Entity.warcode               = warcode;
                Entity.totmcode              = totmcode;
                Entity.totmname              = totmname;
                Entity.todetailid            = Helper.StringToLong(todetailid);
                Entity.status                = status;
                Entity.makestatus            = makestatus;
                Entity.operaretype           = operaretype;
                Entity.isdiscount            = isdiscount;
                Entity.priceispre            = priceispre;
                Entity.ispresented           = ispresented;
                Entity.pecode                = pecode;
                Entity.pename                = pename;
                Entity.prereason             = prereason;
                Entity.prereasontype         = prereasontype;
                Entity.remark                = remark;
                Entity.orderremark           = orderremark;
                Entity.gguid                 = gguid;
                Entity.nopreremark           = nopreremark;
                Entity.storeupdated          = storeupdated;
                Entity.cuser                 = Helper.StringToLong(cuser);

                Entity.comprice   = Helper.StringToDecimal(comprice);
                Entity.cusername  = cusername;
                Entity.tottcode   = tottcode;
                Entity.metname    = metname;
                Entity.metcode    = metcode;
                Entity.detailcode = detailcode;
                Entity.tmopentime = Helper.StringToDateTime(tmopentime);
                Entity.chomac     = chomac;
                Entity.orderno    = orderno;
                Entity.subtype    = subtype;
            }
            return(strRetuen);
        }