コード例 #1
0
ファイル: BLLFtype.cs プロジェクト: Fanwenjie/HR_Project
 public bool Insert_Ftype(string name, string describe, string maker)
 {
     using (DALFtype a = new DALFtype())
     {
         try
         {
             a.Insert_Ftype(name,describe,maker);
             return true;
         }
         catch (Exception e)
         {
             error = e.Message;
             return false;
         }
     }
 }
コード例 #2
0
ファイル: BLLFtype.cs プロジェクト: Fanwenjie/HR_Project
 public string Select_Ftype(int start, int limit)
 {
     using (DALFtype b = new DALFtype())
     {
         try
         {
             string JsonSource = JsonHelper.Jso_ToJSON(b.Select_Ftype(start, limit));    //当前页记录转成JSON格式
             string strJsonSource = "{\"totalCount\":\"" + b.count + "\"";
             strJsonSource = strJsonSource + ",\"data\":" + JsonSource + "}";  //Grid的分页区显示所有记录数增加totalCount信息
             return strJsonSource;
         }
         catch (Exception e)
         {
             error = e.Message;
             return String.Empty;
         }
     }
 }