//public int LeadIntoProductPlanList(string beginTime, string endTime, string isChoseTime, string shopId, string userId)
        //{
        //    int error = 0;
        //    try
        //    {
        //        SPs.LeadIntoProductPlanList(beginTime, endTime, isChoseTime, shopId, userId).Execute();

        //    }
        //    catch (Exception)
        //    {
        //        error = 1;
        //    }

        //    return error;

        //}

        public int ApprovalReduceStock(string shopId, string ma_id, string userId)
        {
            int error = 0;

            try
            {
                SPs.ApprovalReduceMaterial(shopId, ma_id, userId).Execute();
            }
            catch (Exception)
            {
                error = 1;
            }

            return(error);
        }