コード例 #1
0
        public Base_Sale_Manager Detail(Guid Sale_ID)
        {
            ProcDataAndTotal <Base_Sale_Manager> saleList = _Salebll.ProcSale("", 1, 1000);
            Base_Sale_Manager base_Sale = saleList.ProcData.Where(s => s.Sale_ID == Sale_ID).FirstOrDefault();

            return(base_Sale);
        }
コード例 #2
0
        public int InsertSale([FromForm] Base_Sale_Manager model)
        {
            model.Visit_State = "未完成";
            model.End_Date    = Convert.ToDateTime(DateTime.Now).ToString();
            int code = _Salebll.InsertSale(model);

            if (code > 0)
            {
                return(1);
            }
            return(0);
        }
コード例 #3
0
        /// <summary>
        /// 新增拜访信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public int InsertSale(Base_Sale_Manager model)
        {
            DynamicParameters parameters = new DynamicParameters();

            parameters.Add("@Business_ID", model.Business_ID);
            parameters.Add("@Customer_ID", model.Customer_ID);
            parameters.Add("@Visit_Type", model.Visit_Type);
            parameters.Add("@@Plian_Time", model.Plan_Time);
            parameters.Add("@Sale_Desc", model.Sale_Desc);
            parameters.Add("@Visit_State", model.Visit_State);
            parameters.Add("@End_Date", model.End_Date);
            return(helper.ProcExec <Base_Sale_Manager>(parameters, "Insert_Sale"));
        }
コード例 #4
0
        /// <summary>
        /// 新增拜访信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public int InsertSale(Base_Sale_Manager model)
        {
            int code = _Saledal.InsertSale(model);

            return(code);
        }