Пример #1
0
        /// <summary>
        /// 获取制版工艺详情
        /// </summary>
        /// <param name="plateID"></param>
        /// <returns></returns>
        public static PlateMaking GetPlateMakingDetail(string plateID)
        { 
            PlateMaking item=new PlateMaking();
            DataTable dt = TaskDAL.BaseProvider.GetPlateMakingDetail(plateID);

            if (dt.Rows.Count == 1) {
                item.FillData(dt.Rows[0]);
            }
            return item;
        }
Пример #2
0
        /// <summary>
        /// 修改制版工艺
        /// </summary>
        /// <param name="plate"></param>
        /// <returns></returns>
        public static bool UpdatePlateMaking(PlateMaking plate, string operateid, string ip, string agentid, string clientid)
        {
            bool flag= TaskDAL.BaseProvider.UpdatePlateMaking(plate.PlateID,plate.Title,plate.Remark,plate.Icon,plate.Type);

            if (flag)
            {
                string msg = "编辑工艺说明为:" + plate.Title;
                LogBusiness.AddLog(plate.TaskID, EnumLogObjectType.OrderTask, msg, operateid, ip, "", agentid, clientid);
            }

            return flag;
        }
Пример #3
0
        /// <summary>
        /// 获取制版工艺信息
        /// </summary>
        /// <param name="orderID"></param>
        /// <param name="taskID"></param>
        /// <returns></returns>
        public static List<PlateMaking> GetPlateMakings(string orderID, string taskID)
        {
            List<PlateMaking> list = new List<PlateMaking>();
            DataTable dt = TaskDAL.BaseProvider.GetPlateMakings(orderID, taskID);

            foreach (DataRow dr in dt.Rows)
            {
                PlateMaking item = new PlateMaking();
                item.FillData(dr);
                list.Add(item);
            } 
            return list;
        }