Exemplo n.º 1
0
 public void UpdateState(string getNumber, string getEnterDate, string getState, string getCurRecTime, string getOrigState)
 {
     using (StudentCheckInfoDataAccess stuCheckInfoDataAccess = new StudentCheckInfoDataAccess())
     {
         try
         {
             stuCheckInfoDataAccess.DoUpdateState(getNumber, getEnterDate, getState, getCurRecTime, getOrigState);
         }
         catch (Exception e)
         {
             Util.WriteLog(e.Message, Util.EXCEPTION_LOG_TITLE);
         }
     }
 }
Exemplo n.º 2
0
 public DataSet GetClassName(string getName, string getNumber)
 {
     using (StudentCheckInfoDataAccess stuCheckInfoDataAccess = new StudentCheckInfoDataAccess())
     {
         try
         {
             return(stuCheckInfoDataAccess.GetClassName(getName, getNumber));
         }
         catch (Exception e)
         {
             Util.WriteLog(e.Message, Util.EXCEPTION_LOG_TITLE);
             return(null);
         }
     }
 }
Exemplo n.º 3
0
 public DataSet GetStuCustomStatusList()
 {
     try
     {
         using (StudentCheckInfoDataAccess stuCheckInfoDataAccess = new StudentCheckInfoDataAccess())
         {
             return(stuCheckInfoDataAccess.GetCustomStatusList());
         }
     }
     catch (Exception e)
     {
         Util.WriteLog(e.Message, Util.EXCEPTION_LOG_TITLE);
         return(null);
     }
 }
Exemplo n.º 4
0
 public DataSet GetStuBackHomeCheckInfo(string getGrade, string getClass, string getName, string getNumber,
                                        string getBegDate, string getEndDate, string getState)
 {
     using (StudentCheckInfoDataAccess stuCheckInfoDataAccess = new StudentCheckInfoDataAccess())
     {
         try
         {
             return(stuCheckInfoDataAccess.GetBackHomeCheckInfo(getGrade, getClass, getName, getNumber,
                                                                getBegDate, getEndDate, getState));
         }
         catch (Exception e)
         {
             Util.WriteLog(e.Message, Util.EXCEPTION_LOG_TITLE);
             return(null);
         }
     }
 }
Exemplo n.º 5
0
        public DataSet GetStuMorningCheckInfo(string getGrade, string getClass, string getName, string getNumber,
                                              string getBegDate, string getEndDate, string getState)
        {
            using (StudentCheckInfoDataAccess stuCheckInfoDataAccess = new StudentCheckInfoDataAccess())
            {
                try
                {
                    this.ClearCellManualModify();
                    this.ClearCellManualInput();
                    DataSet dsMorningCheckInfo = stuCheckInfoDataAccess.GetMorningCheckInfo(getGrade, getClass, getName,
                                                                                            getNumber, getBegDate, getEndDate, getState);
                    for (int modifyRow = 0; modifyRow < dsMorningCheckInfo.Tables[0].Rows.Count; modifyRow++)
                    {
                        // 添加需要对修改作出标识的行号
                        if (Convert.ToInt32(dsMorningCheckInfo.Tables[0].Rows[modifyRow][5]) == 1 ||
                            Convert.ToInt32(dsMorningCheckInfo.Tables[0].Rows[modifyRow][5]) == 3)
                        {
                            // 手工修改
//							this.SetCellManualModify(modifyRow);
                            this.SetCellManualModify(dsMorningCheckInfo.Tables[0].Rows[modifyRow][1].ToString());
                            this.SetCellManualModify(dsMorningCheckInfo.Tables[0].Rows[modifyRow][3].ToString());
                        }

                        if (Convert.ToInt32(dsMorningCheckInfo.Tables[0].Rows[modifyRow][5]) == 2 ||
                            Convert.ToInt32(dsMorningCheckInfo.Tables[0].Rows[modifyRow][5]) == 4)
                        {
                            // 手动输入
//							this.SetCellManualInput(modifyRow);
                            this.SetCellManualInput(dsMorningCheckInfo.Tables[0].Rows[modifyRow][1].ToString());
                            this.SetCellManualInput(dsMorningCheckInfo.Tables[0].Rows[modifyRow][3].ToString());
                        }
                    }
                    return(dsMorningCheckInfo);
                }
                catch (Exception e)
                {
                    Util.WriteLog(e.Message, Util.EXCEPTION_LOG_TITLE);
                    return(null);
                }
            }
        }