Ejemplo n.º 1
0
        /// <summary>
        /// ���½��뻺���ʱ�䣬��ORDER_NO     
        /// </summary>
        /// <returns></returns>
        public int UpdateInChannelTime(string TaskID, string Bill_No, string ChannelNo)
        {
            using (PersistentManager pm = new PersistentManager())
            {
                int strValue = 0;
                ChannelDao dao = new ChannelDao();
                int count = dao.ProductCount(Bill_No);
                TaskDao tdao = new TaskDao();

                int taskCount = tdao.TaskCount(Bill_No);
                if (count == 0)
                    strValue = 1;
                if (count == taskCount - 1)
                    strValue = 2;
                dao.UpdateInChannelTime(TaskID, Bill_No, ChannelNo);
                return strValue;
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 根据单号,返回任务数量
 /// </summary>
 /// <param name="BillNo"></param>
 /// <returns></returns>
 public int TaskCount(string BillNo)
 {
     using (PersistentManager pm = new PersistentManager())
     {
         TaskDao dao = new TaskDao();
         return dao.TaskCount(BillNo);
     }
 }