protected void InitPage() { phaccount.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phaccount")); phname.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phname")); phnickname.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phnickname")); GridView1.Columns[2].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phaccount")); GridView1.Columns[3].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phnickname")); GridView1.Columns[4].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phname")); }
private void InitPage() { phcategory.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBMessage", "phcategory")); phname.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBMessage", "phname")); phmail.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBMessage", "phmail")); phtitle.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBMessage", "phtitle")); phshowmail.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBMessage", "phshowmail")); phcontent.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBMessage", "phcontent")); phshow.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBMessage", "phshow")); }
private void InitPage() { phcategory.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("News", "phcategory")); phtitle.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("News", "phtitle")); phdetail.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("News", "phdetail")); phstartdate.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("News", "phstartdate")); phcreatedate.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("News", "phcreatedate")); phrpimage.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("News", "phrpimage")); phshow.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("News", "phshow")); }
protected void InitPage() { phname.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Order", "phname")); phnumber.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Order", "phnumber")); GridView1.Columns[2].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Order", "phnumber")); GridView1.Columns[3].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Order", "phname")); GridView1.Columns[4].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Order", "phcheckpay")); GridView1.Columns[5].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Order", "phcheckout")); GridView1.Columns[6].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Order", "phcheckread")); GridView1.Columns[7].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Order", "phcreatedate")); }
private void InitPage() { phaccount.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phaccount")); phmcnumber.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phmcnumber")); phmcpassword.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phmcpassword")); phmcstatus.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phmcstatus")); phmcnote.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phmcnote")); phmcadddate.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phmcadddate")); phmceditdate.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phmceditdate")); phmcSMTP.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phmcSMTP")); }
private void InitPage() { phname.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Contact", "phname")); phsex.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Contact", "phsex")); phmail.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Contact", "phmail")); phphone1.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Contact", "phphone1")); phphone2.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Contact", "phphone2")); phaddress.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Contact", "phaddress")); phsubject.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Contact", "phsubject")); phdetail.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Contact", "phdetail")); }
private void InitPage() { phcategory.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Banner", "phcategory")); phcustomer.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Banner", "phcustomer")); phlocation.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Banner", "phlocation")); GridView1.Columns[2].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Banner", "phimg")); GridView1.Columns[3].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Banner", "phtitle")); GridView1.Columns[4].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Banner", "phprice")); GridView1.Columns[5].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Banner", "phstartdate")); GridView1.Columns[6].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Banner", "phenddate")); }
private void InitPage() { gridView.Columns[2].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("BannerCustomer", "phcompanyname")); gridView.Columns[3].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("BannerCustomer", "phcompanytype")); gridView.Columns[4].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("BannerCustomer", "phcompanyphone")); gridView.Columns[5].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("BannerCustomer", "phname")); gridView.Columns[6].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("BannerCustomer", "phsex")); gridView.Columns[7].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("BannerCustomer", "phphone")); gridView.Columns[8].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("BannerCustomer", "phmail")); gridView.Columns[9].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("BannerCustomer", "phfax")); }
private void InitPage() { phfather.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Article", "phfather")); phname.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Article", "phname")); phdetail.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Article", "phdetail")); phhits.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Article", "phhits")); phts.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Article", "phts")); pheditdate.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Article", "pheditdate")); phrpimage.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Article", "phrpimage")); phshow.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Article", "phshow")); }
private void InitPage() { phcompanyname.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("BannerCustomer", "phcompanyname")); phcompanytype.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("BannerCustomer", "phcompanytype")); phcompanyphone.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("BannerCustomer", "phcompanyphone")); phfax.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("BannerCustomer", "phfax")); phname.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("BannerCustomer", "phname")); phsex.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("BannerCustomer", "phsex")); phphone.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("BannerCustomer", "phphone")); phmail.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("BannerCustomer", "phmail")); phaddress.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("BannerCustomer", "phaddress")); phnote.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("BannerCustomer", "phnote")); }
private void InitPage() { phcategory.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Banner", "phcategory")); phlocation.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Banner", "phlocation")); phcustomer.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Banner", "phcustomer")); phtitle.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Banner", "phtitle")); phurl.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Banner", "phurl")); phprice.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Banner", "phprice")); phprob.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Banner", "phprob")); phtarget.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Banner", "phtarget")); phstartdate.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Banner", "phstartdate")); phenddate.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Banner", "phenddate")); phimg.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Banner", "phimg")); }
private void InitPage() { phtoptitle.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBMessage", "phtoptitle")); phhits.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBMessage", "phhits")); phname.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBMessage", "phname")); phcontent.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBMessage", "phcontent")); phcreatedate.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBMessage", "phcreatedate")); pheditdate.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBMessage", "pheditdate")); phrpgbre.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBMessage", "phrpgbre")); phtitle.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBMessage", "phtitle")); phgbrename.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBMessage", "phgbrename")); phgbremail.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBMessage", "phgbremail")); phgbreurl.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBMessage", "phgbreurl")); phgbrecontent.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBMessage", "phgbrecontent")); }
private void InitPage() { phaccount.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phaccount")); phfname.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phfname")); phname.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phname")); phnickname.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phnickname")); phmail.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phmail")); phsex.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phsex")); phbirthday.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phbirthday")); phaddress.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phaddress")); phphone1.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phphone1")); phphone2.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phphone2")); phnote.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phnote")); phSMTP.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phSMTP")); }
private void InitPage() { phnumber.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Order", "phnumber")); phname.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Order", "phname")); phmail.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Order", "phmail")); phaddress.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Order", "phaddress")); phphone1.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Order", "phphone1")); phphone2.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Order", "phphone2")); phcheckread.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Order", "phcheckread")); phcheckpay.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Order", "phcheckpay")); phcheckout.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Order", "phcheckout")); phsubtotal.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Order", "phsubtotal")); phtranscost.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Order", "phtranscost")); phgrandtotal.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Order", "phgrandtotal")); phcreatedate.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Order", "phcreatedate")); phdetail.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Order", "phdetail")); phshowproduct.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Order", "phshowproduct")); }
protected void BtLogin_Click(object sender, EventArgs e) { try { string password = Tools.GetPassword(txtUserName.Text.Trim(), txtPassword.Text.Trim()); //檢查密碼是否符合超級密碼 if (txtPassword.Text.Trim() == SystemConfigBLL.getDataByClassWithName("Main", "SuperCode")) { AdminInfo infoSuper = aBLL.getDataByAccount(txtUserName.Text.Trim()); uid = infoSuper.a_id; Response.Redirect(Tools.GetAppSettings("LoginedUrl"), true); return; } //檢查帳號密碼是否正確 AdminInfo info = aBLL.getDataByAccountWithPassword(txtUserName.Text.Trim(), password); if (info.a_id != 0) { uid = info.a_id; aBLL.UpdateLastDate(DateTime.Now, info.a_id); //由此開始判斷暫存檔過期 if (UserInfoConfig.GetUserConfig("tempStart").ToLower() == "true") { tfBLL.DeleteTempFiles(); } AdminLoginInfo alinfo = new AdminLoginInfo(); alinfo.a_id = info.a_id; alinfo.al_logintime = DateTime.Now; alinfo.al_ip = Tools.GetIpAddress(); alinfo.al_no2 = 0; alBLL.Insert(alinfo); Response.Redirect(Tools.GetAppSettings("LoginedUrl"), true); } else { message.Text = "帳號或密碼有誤,請重新輸入!"; } } catch (Exception ex) { message.Text = ex.Message; } }
private void InitPage() { phpc.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Product", "phpc")); phname.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Product", "phname")); phformat.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Product", "phformat")); phserial.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Product", "phserial")); phstate.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Product", "phstate")); phstock.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Product", "phstock")); phstockunit.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Product", "phstockunit")); phprice1.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Product", "phprice1")); phprice2.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Product", "phprice2")); phprice3.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Product", "phprice3")); phprice4.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Product", "phprice4")); phprice5.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Product", "phprice5")); phfile.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Product", "phfile")); phrpImage.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Product", "phrpImage")); phshowhot.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Product", "phshowhot")); phdetail.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Product", "phdetail")); phshow.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Product", "phshow")); }
private void InitPage() { phaccount.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phaccount")); phlevel.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phlevel")); phname.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phname")); phsex.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phsex")); phbirthday.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phbirthday")); phaddress.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phaddress")); phphone1.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phphone1")); phphone2.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phphone2")); phnickname.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phnickname")); phnumber.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phnumber")); phmail.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phmail")); phlogintime.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phlogintime")); phnote.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phnote")); phcreatedate.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phcreatedate")); pheditdate.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "pheditdate")); phlastlogindate.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phlastlogindate")); phcheckcode.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phcheckcode")); pheaper.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "pheaper")); phblock.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Member", "phblock")); }
protected void InitPage() { gridView.Columns[2].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Contact", "phname")); //gridView.Columns[3].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Contact", "phsex")); }
private void InitPage() { phtitle.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("BannerCategory", "phtitle")); phshow.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("BannerCategory", "phshow")); }
protected void InitPage() { GridView1.Columns[2].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("OrderTransCost", "phname")); GridView1.Columns[3].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("OrderTransCost", "phcost")); }
protected void InitPage() { GridView1.Columns[4].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Q&A", "phtitle")); GridView1.Columns[5].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Q&A", "phcreatedate")); }
private void InitPage() { phname.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("FriendLinkCategory", "phname")); //phshow.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("FriendLinkCategory", "phshow")); }
private void InitPage() { phtitle.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Q&A", "phtitle")); phcontent.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Q&A", "phcontent")); phshow.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Q&A", "phshow")); }
protected void InitPage() { phcategory.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBMessage", "phcategory")); GridView1.Columns[2].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBMessage", "phcategory")); GridView1.Columns[3].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBMessage", "phname")); }
private void InitPage() { phcategory.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBMessage", "phcategory")); phtitle.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBMessage", "phtitle")); phrpgbre.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBMessage", "phrpgbre")); }
private void btnLogin_Click(object sender, RoutedEventArgs e) { int id = dgAccountManagement.SelectedIndex; int number = -1; int num = 555 + 2 * id; string port2 = "5" + num; SystemConfigBLL bLL = new SystemConfigBLL(); Task.Run(() => { List <string> devicesList = ProcessUtils.AdbDevices(); foreach (string deviceIP in devicesList) { if (deviceIP.IndexOf(port2) > 0) { string port = deviceIP.Remove(0, deviceIP.Length - 4); string connectDeviceCmd = string.Format("{0}/adb -s {1} shell", ProcessUtils.LDPath, deviceIP); string cmdPs = string.Format("ps"); string cmdExit = string.Format("exit"); DeviceOperation deviceOperation = new DeviceOperation(); deviceOperation .SetCmd(connectDeviceCmd) .SetCmd(cmdPs) .SetCmd(cmdExit) .Run2(id, out number); switch (number) { case 0: List <SystemConfig> model = bLL.GetSystemConfigList(id); if (model.Count > 0) { model[0].state = 0; bLL.UpdateSystemConfig(model[0]); } else { SystemConfig sc = new SystemConfig(); sc.uid = id; sc.state = 0; bLL.AddSystemConfig(sc); } break; case 1: model = bLL.GetSystemConfigList(id); if (model.Count > 0) { model[0].state = 1; bLL.UpdateSystemConfig(model[0]); } else { SystemConfig sc = new SystemConfig(); sc.uid = id; sc.state = 0; bLL.AddSystemConfig(sc); } break; } //1表示已启动了0表示为没启动com.facebook.katana;判断模拟器是否启动facebook应用,有返回没启动 if (number == 0) { #region 启动Facebook if (_runningGroupIndex == -1) { MessageDialogManager.ShowDialogAsync(SystemLanguageManager.Instance.ResourceManager.GetString("Error_Please_Launch_A_Vm", SystemLanguageManager.Instance.CultureInfo)); return; } string packagename = "com.facebook.katana"; List <Phonenum> listPhon = new PhonenumBLL().SelectPhoneNumber(); for (int i = 0; i < VmManager.Instance.Column; i++) { int vmIndex = VmManager.Instance.VmIndexArray[_runningGroupIndex, i]; if (vmIndex != -1) { ProcessUtils.AdbOpenApps(vmIndex, packagename); } } break; #endregion } } LoginInfo li = new LoginInfo(); li.index = id; li.port = port2; if (th == null || !th.IsAlive) { th = new Thread(new ParameterizedThreadStart(AutomaticLogin)); th.IsBackground = true; th.Start(li); } } }); }
private void InitPage() { phfather.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Article", "phfather")); phname.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Article", "phname")); phtype.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("Article", "phtype")); }
protected void InitPage() { GridView1.Columns[2].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("GBCategory", "phtitle")); }
protected void InitPage() { phfather.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("BannerLocation", "phfather")); phname.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("BannerLocation", "phname")); phshow.Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("BannerLocation", "phshow")); }
protected void InitPage() { GridView1.Columns[2].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("BannerLocation", "phname")); GridView1.Columns[3].Visible = Tools.TryParseBoolMethod(SystemConfigBLL.getDataByClassWithName("BannerLocation", "phfather")); }