Esempio n. 1
0
 public static string SetCreateServiceStream(Page pages, string Url)
 {
     UserModel model = new UserDal();
     DB_OPT dbo = new DB_OPT();
     string newServerPK = "";
     UserModel model2 = (UserModel) pages.Session["User"];
     string userName = model2.UserName;
     string userCompany = pages.Session["pk_corp"].ToString();
     string bH = model2.Branch.BH;
     string userDate = DateTime.Now.ToString("yyyy-MM-dd");
     model.SetServiceStream(Url, "", userName, userCompany, bH, userDate, "", 0, out newServerPK, dbo);
     return newServerPK;
 }
Esempio n. 2
0
 public static string SetServiceStream(Page pages, int operation, string tableName, string IdName, string IdValue, string Mess, string PD_NOW_SERVERPK_NAME)
 {
     UserModel model = new UserDal();
     DB_OPT dbo = new DB_OPT();
     string newServerPK = "";
     TB_PROJECT_Bll bll = new TB_PROJECT_Bll();
     string str3 = pages.Request.Url.ToString();
     int startIndex = str3.LastIndexOf("/") + 1;
     int num2 = str3.LastIndexOf("?");
     string path = (num2 < 0) ? str3.Substring(startIndex) : str3.Substring(startIndex, num2 - startIndex);
     UserModel model2 = (UserModel) pages.Session["User"];
     string userName = model2.UserName;
     string userCompany = pages.Session["pk_corp"].ToString();
     string bH = model2.Branch.BH;
     string userDate = DateTime.Now.ToString("yyyy-MM-dd");
     string serverPK = bll.GetServerPK(tableName, IdName, IdValue, PD_NOW_SERVERPK_NAME);
     model.SetServiceStream(path, IdValue, userName, userCompany, bH, userDate, serverPK, operation, out newServerPK, dbo);
     if (bll.UpdateServerPK(tableName, IdName, IdValue, newServerPK, PD_NOW_SERVERPK_NAME))
     {
         if (Mess != null)
         {
             PageShowText.Refurbish(Mess + "成功", pages);
         }
         return newServerPK;
     }
     if (Mess != null)
     {
         PageShowText.Refurbish(Mess + "失败", pages);
     }
     return newServerPK;
 }
Esempio n. 3
0
 public static string SetCreateServiceStream(Page pages)
 {
     UserModel model = new UserDal();
     DB_OPT dbo = new DB_OPT();
     string newServerPK = "";
     new TB_PROJECT_Bll();
     string str2 = pages.Request.Url.ToString();
     int startIndex = str2.LastIndexOf("/") + 1;
     int num2 = str2.LastIndexOf("?");
     string path = (num2 < 0) ? str2.Substring(startIndex) : str2.Substring(startIndex, num2 - startIndex);
     UserModel model2 = (UserModel) pages.Session["User"];
     string userName = model2.UserName;
     string userCompany = pages.Session["pk_corp"].ToString();
     string bH = model2.Branch.BH;
     string userDate = DateTime.Now.ToString("yyyy-MM-dd");
     model.SetServiceStream(path, "", userName, userCompany, bH, userDate, "", 0, out newServerPK, dbo);
     return newServerPK;
 }