//页面加载 protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DataTable dt = new DataTable(); //dt = bpt.Select_All(); DDList.DataSource = dt; DDList.DataTextField = "ProjectTypeName"; DDList.DataValueField = "ProjectTypeID"; DDList.DataBind(); } }
//页面加载 protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DataTable dt = ptBll.Sel(); DDList.DataSource = dt; DDList.DataTextField = "TName"; DDList.DataValueField = "ID"; DDList.DataBind(); this.Leader.Text = badmin.GetAdminLogin().AdminTrueName; //this.ProManageerID_H.Value = badmin.GetAdminLogin().AdminId.ToString(); } Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='Projects.aspx'>项目管理</a></li><li class='active'>新增项目</a></li>"); }
protected void Page_Load(object sender, EventArgs e) { ManagersList = (List <Employee>)Session["list"]; if (!IsPostBack) { DDList.DataSource = Session["list"]; DDList.DataTextField = "Name"; DDList.DataValueField = "Id"; DDList.DataBind(); } if (isEdit()) { GetInitialValues(); } }
public void LoadDataDirectory(string fpath) { var aliasFilePath = FileSystem.PathCombine(fpath, "alias.txt"); if (FileSystem.FileExists(aliasFilePath)) { ALDList.Load(aliasFilePath); } var mindFilePath = FileSystem.PathCombine(fpath, "mind.txt"); var spFilePath = FileSystem.PathCombine(fpath, "sp.txt"); if (FileSystem.FileExists(mindFilePath)) { SPDList.Load(mindFilePath); } else if (FileSystem.FileExists(spFilePath)) { SPDList.Load(spFilePath); } var pilotFilePath = FileSystem.PathCombine(fpath, "pilot.txt"); if (FileSystem.FileExists(pilotFilePath)) { PDList.Load(pilotFilePath); } var nonPilotFilePath = FileSystem.PathCombine(fpath, "non_pilot.txt"); if (FileSystem.FileExists(nonPilotFilePath)) { NPDList.Load(nonPilotFilePath); } var robotFilePath = FileSystem.PathCombine(fpath, "robot.txt"); if (FileSystem.FileExists(robotFilePath)) { UDList.Load(robotFilePath); } var unitFilePath = FileSystem.PathCombine(fpath, "unit.txt"); if (FileSystem.FileExists(unitFilePath)) { UDList.Load(unitFilePath); } //// ロードのインジケータ表示を行う //if (My.MyProject.Forms.frmNowLoading.Visible) //{ // GUI.DisplayLoadingProgress(); //} var pilotMessageFilePath = FileSystem.PathCombine(fpath, "pilot_message.txt"); if (FileSystem.FileExists(pilotMessageFilePath)) { MDList.Load(pilotMessageFilePath, false); } var pilotDialogFilePath = FileSystem.PathCombine(fpath, "pilot_dialog.txt"); if (FileSystem.FileExists(pilotDialogFilePath)) { DDList.Load(pilotDialogFilePath); } var effectFilePath = FileSystem.PathCombine(fpath, "effect.txt"); if (FileSystem.FileExists(effectFilePath)) { EDList.Load(effectFilePath, true); } var animationFilePath = FileSystem.PathCombine(fpath, "animation.txt"); if (FileSystem.FileExists(animationFilePath)) { ADList.Load(animationFilePath, false); } var ext_animationFilePath = FileSystem.PathCombine(fpath, "ext_animation.txt"); if (FileSystem.FileExists(ext_animationFilePath)) { EADList.Load(ext_animationFilePath, false); } var itemFilePath = FileSystem.PathCombine(fpath, "item.txt"); if (FileSystem.FileExists(itemFilePath)) { IDList.Load(itemFilePath); } }