Exemplo n.º 1
0
        /// <summary>
        /// 增加一条环节信息记录
        /// </summary>
        private static void addCaseRecord(int jcid, string caseid)
        {
            HandleCaseRecord CaseRecord = new HandleCaseRecord();

            CaseRecord.dtBeginTime      = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            CaseRecord.strTrainHandleID = jcid;
            CaseRecord.strCaseID        = caseid;
            CaseRecord.nIsComplete      = 0;
            CaseRecord.Addhadcaseid();//添加一条整备环节记录
        }
Exemplo n.º 2
0
        /// <summary>
        /// 更新环节记录
        /// </summary>
        /// <param name="jcid"></param>
        /// <param name="caseid"></param>
        private static void UpdateCaseRecord(int jcid, string caseid)
        {
            HandleCaseRecord CaseRecord = new HandleCaseRecord();

            CaseRecord.dtEndTime        = DateTime.Now;
            CaseRecord.nIsComplete      = 1;
            CaseRecord.strTrainHandleID = jcid;
            CaseRecord.strCaseID        = caseid;
            //更新环节信息完成状态 及时间
            CaseRecord.Update();
        }