Exemple #1
0
        public DingdanMingxiDetailsModel JisuanMingxi(DingdanMingxiDetailsModel model)
        {
            DingdanMingxi mingxi = this.CreateDingdanMingxi(null, model);

            mingxi.Jisuan();
            return(new DingdanMingxiDetailsModel(mingxi));
        }
Exemple #2
0
        private DingdanMingxi CreateDingdanMingxi(Dingdan dingdan, DingdanMingxiDetailsModel detailsModel)
        {
            DingdanMingxiCreateInfo mingxiInfo = new DingdanMingxiCreateInfo();

            ClassPropertyHelper.ChangeProperty(mingxiInfo, detailsModel);
            mingxiInfo.Dingdan = dingdan;
            mingxiInfo.Chanpin = this._coreManager.ChanpinManager.GetChanpinById(detailsModel.chanpin.id);
            return(new DingdanMingxi(mingxiInfo));
        }