public frmDORMITORYADD() { this._enumStatus = StatusClass.AddNew; InitializeComponent(); this.Text = "增加宿舍信息"; init_building(); }
public Form1() { InitializeComponent(); //creating this object only once while software starts // we can even serialize- deserialize this object m_statusClass = new StatusClass(); }
/// <summary> /// 构造方法,用于新增课程信息 /// </summary> public frmCOURSEADD() { InitializeComponent(); init_coursetype(); this._enumStatus = StatusClass.AddNew; this.Text = "新增课程信息"; }
private void ContentDialog_PrimaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args) { AuthenticateClass token = GetToken.getAuthClass(); StatusClass.postStatus(token, TootContents.Text, in_reply_to_id, null, null, null); Hide(); }
/// <summary> /// 构造方法 /// </summary> /// <param name="iID"></param> /// <param name="enumStatus"></param> public frmMATERIALADD(int iID, StatusClass enumStatus) { this._enumStatus = StatusClass.Edit; this._materialno = iID; InitializeComponent(); this.Text = "修改材料信息"; readData(); }
/// <summary> /// 构造方法,用于修改课程信息 /// </summary> /// <param name="iID"></param> /// <param name="enumStatus"></param> public frmCOURSEADD(int iID, StatusClass enumStatus) { this._enumStatus = StatusClass.Edit; this._courseno = iID; InitializeComponent(); this.Text = "修改课程信息"; readData(); }
public frmTERMADD(int iID, StatusClass enumStatus) { this._enumStatus = StatusClass.Edit; //修改学期信息 this._termno = iID; InitializeComponent(); this.Text = "修改学期信息"; //修改界面title readData(); //查询数据 }
public frmSTUDENTADD() { InitializeComponent(); init_class(); init_dormitory(); this._enumStatus = StatusClass.AddNew; this.cbb_status.SelectedIndex = 0; }
/// <summary> /// 构造方法,修改宿舍楼用 /// </summary> /// <param name="iID"></param> /// <param name="enumStatus"></param> public frmBUILDINGADD(int iID, StatusClass enumStatus) { this._enumStatus = StatusClass.Edit; this._buildingno = iID; InitializeComponent(); this.Text = "修改宿舍楼信息"; readData(); }
/// <summary> /// 构造方法,用于新增班级 /// </summary> public frmCLASSADD() { InitializeComponent(); this._enumStatus = StatusClass.AddNew; init_teacher(); init_majordirct(); this.Text = "添加班级信息"; }
/// <summary> /// 构造方法,修改专业功能可用,iID为传过来的专业编号,enumStatus标识当前功能 /// </summary> /// <param name="iID"></param> /// <param name="enumStatus"></param> public frmMAJORADD(int iID, StatusClass enumStatus) { this._enumStatus = StatusClass.Edit; //修改专业信息 this._majorno = iID; InitializeComponent(); this.Text = "修改专业信息"; //修改界面title readData(); //查询数据 }
/// <summary> /// 构造方法,修改专业功能可用,iID为传过来的专业编号,enumStatus标识当前功能 /// </summary> /// <param name="iID"></param> /// <param name="enumStatus"></param> public frmWORKNODEADD(int iID, StatusClass enumStatus) { this._enumStatus = StatusClass.Edit; //修改专业信息 this._nodeno = iID; InitializeComponent(); this.Text = "修改工作节点信息"; //修改界面title readData(); //查询数据 }
public frmWORKFLOWADD() { InitializeComponent(); this._enumStatus = StatusClass.AddNew; this.cbb_status.Properties.Items.Add("未用"); this.cbb_status.Properties.Items.Add("在用"); this.cbb_status.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; }
/// <summary> /// 构造方法,用于修改课程类型 /// </summary> /// <param name="iID"></param> /// <param name="enumStatus"></param> public frmCOURSE_TYPEADD(int iID, StatusClass enumStatus) { this._enumStatus = StatusClass.Edit; //修改专业信息 this._coursetypeno = iID; InitializeComponent(); this.Text = "修改课程信息"; //修改界面title readData(); //查询数据 }
/// <summary> /// 构造方法,修改教师信息功能可用,iID为传过来的教师工号,enumStatus标识当前功能 /// </summary> /// <param name="iID"></param> /// <param name="enumStatus"></param> public frmTEACHERADD(int iID, StatusClass enumStatus) { this._enumStatus = StatusClass.Edit; //修改教师信息 this._teacherno = iID; InitializeComponent(); this.Text = "修改教师信息"; //修改界面title readData(); //查询数据 this.te_workid.ReadOnly = true; //教师工号输入框只读,不可修改 }
public frmDORMITORYADD(int iID, StatusClass enumStatus) { this._enumStatus = StatusClass.Edit; //修改宿舍信息 this._dormitoryid = iID; InitializeComponent(); this.Text = "修改宿舍信息"; //修改界面title init_building(); readData(); //查询数据 }
public frmSTU_JOBSTATUSADD(string stuno) { InitializeComponent(); this._enumStatus = StatusClass.AddNew; this._stuno = stuno; init_ent(); readData(); this.Text = "添加学生就业信息"; }
public frmDEPARTMENTADD(int iID, StatusClass enumStatus) { this._enumStatus = StatusClass.Edit; this._departmentno = iID; InitializeComponent(); this.Text = "修改学院信息"; readData(); this.te_departmentno.ReadOnly = true; }
/// <summary> /// 构造方法,用于修改班级 /// </summary> /// <param name="iID"></param> /// <param name="enumStatus"></param> public frmSTU_JOBSTATUSADD(int iID, StatusClass enumStatus) { this._enumStatus = StatusClass.Edit; //修改专业信息 this._statusno = iID; InitializeComponent(); init_ent(); this.Text = "修改学生就业信息"; //修改界面title readData(); //查询数据 }
/// <summary> /// 构造方法,用于修改班级 /// </summary> /// <param name="iID"></param> /// <param name="enumStatus"></param> public frmCLASSADD(int iID, StatusClass enumStatus) { this._enumStatus = StatusClass.Edit; //修改专业信息 this._classno = iID; InitializeComponent(); init_teacher(); init_majordirct(); this.Text = "修改班级信息"; //修改界面title readData(); //查询数据 }
/// <summary> /// 构造方法,修改专业功能可用,iID为传过来的专业编号,enumStatus标识当前功能 /// </summary> /// <param name="iID"></param> /// <param name="enumStatus"></param> public frmWORKFLOWADD(int iID, StatusClass enumStatus) { this._enumStatus = StatusClass.Edit; //修改专业信息 this._workflowno = iID; InitializeComponent(); this.Text = "修改工作流信息"; //修改界面title readData(); //查询数据 this.cbb_status.Properties.Items.Add("未用"); this.cbb_status.Properties.Items.Add("在用"); this.cbb_status.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; }
/// <summary> /// 构造方法,新增专业功能可用 /// </summary> public frmSTUDENTADD(string sID, StatusClass enumStatus) { this._enumStatus = StatusClass.Edit; //修改专业信息 this._stuno = sID; InitializeComponent(); this.Text = "修改专业信息"; //修改界面title init_class(); init_dormitory(); readData(); //查询数据 this.te_stuno.ReadOnly = true; //学生学号输入框只读,不可修改 }
public ActionResult Bedom(StatusTable nyStatus) { ServiceReference2.Service1Client klient = new ServiceReference2.Service1Client(); StatusClass nyB = new StatusClass(); nyB.Bfyrasiffror = nyStatus.Bfyrasiffror; nyB.Bedomning = nyStatus.Bedomning; nyB.Datum = nyStatus.Datum; nyB.Kommentar = nyStatus.Kommentar; klient.CreateStatus(nyStatus); return(RedirectToAction("Ansokningar", "Admin")); }
protected void btnAdd_Click(object sender, EventArgs e) { List <Tbl_User> lUsers = ViewState["lUsers"] as List <Tbl_User>; int iPlanAdm = 1; int iDesignAdm = lUsers[DropDownList2.SelectedIndex].ID; int iProductAdm = lUsers[DropDownList3.SelectedIndex].ID; int iCenterStorateAdm = lUsers[DropDownList4.SelectedIndex].ID; int iSiteStorageAdm = lUsers[DropDownList5.SelectedIndex].ID; DateTime now = DateTime.Now; if ((this.CurrentUserInfo.Identify & 128) != 0) { Tbl_Plan oPlan = new Tbl_Plan(); oPlan.ProjectName = txtProjectName.Text; oPlan.PlanDate = now; oPlan.Planer = this.CurrentUserInfo.Id;//项目人员id oPlan.PlanerStatus = 128; oPlan.PlanAdm = iPlanAdm; oPlan.PlanAdmStatus = 128; oPlan.DesignAdm = iDesignAdm; oPlan.DesignAdmStatus = 1; oPlan.ProductAdm = iProductAdm; oPlan.ProductAdmStatus = 1; oPlan.CenterStorageAdm = iCenterStorateAdm; oPlan.CenterStorageAdmStatus = 1; oPlan.SiteStorageAdm = iSiteStorageAdm; oPlan.SiteStorageAdmStatus = 1; Msg msg = PlanModel.AddPlan(oPlan); if (msg.Status) { StatusClass oStatus = StatusClass.GetInstance(); //此处运用单例模式 oStatus.CurrPlanId = this.CurrentUserInfo.Id; oStatus.CurrStatus++; //已提交项目 PageHelper.ShowAlertMsg(this, "增加成功"); } else { PageHelper.ShowAlertMsg(this, msg.Message); } } else { PageHelper.ShowAlertMsg(this, "您当前没有增加项目的权限"); } }
static void Main(string[] args) { //object initiations InitPCDCall initPCDCall = new InitPCDCall(); TerminalIPAddress terminalIPAddress = new TerminalIPAddress(); StatusClass terminalStatus = new StatusClass(); StringBuilder logDetails = new StringBuilder(); logDetails.Append($"Date/Time: {DateTime.Now}.\n"); //Set terminalIp Address terminalIPAddress.IPAddressIn = ConfigurationManager.AppSettings.Get("IPAddress"); terminalIPAddress.SetIPAddress(); if (terminalIPAddress.DiagRequestOut == "0") { logDetails.Append("PED IP Address set Correctly\n"); } else { logDetails.Append("PED IP Address NOT set Correctly\n"); } //check status at Idle terminalStatus.GetTerminalState(); if (terminalStatus.StateOut == 1) { logDetails.Append("PED at Idle for PCD initialisation\n"); } else { logDetails.Append("PED NOT at Idle for PCD initialisation\n"); } //Launch the PCD call initPCDCall.Launch(); if (initPCDCall.DiagRequestOut == "0") { logDetails.Append("The PED PCD initiation request is sent to the PED\n"); } else { logDetails.Append("The PED PCD initiation request was NOT sent to the PED\n"); } File.WriteAllText(ConfigurationManager.AppSettings.Get("LogPath"), logDetails.ToString()); }
public frmWORKFLOWSETADD(Model.WORKFLOWSETADD workflowsetaddMdl, StatusClass enumStatus) { InitializeComponent(); this.workflowsetaddMdl = workflowsetaddMdl; this.te_workflowname.Text = workflowsetaddMdl.WORKFLOWNAME; this.setno = workflowsetaddMdl.SETNO; this._enumStatus = enumStatus; init(); if (enumStatus == StatusClass.AddNew) { this.Text = "新增工作流节点"; } else { this.Text = "修改工作流节点"; } }
public frmNODEMATERIALSADD(Model.NODEMATERIALSADD nodematerialsaddMdl, StatusClass enumStatus) { InitializeComponent(); this.nodematerialsaddMdl = nodematerialsaddMdl; this.te_nodename.Text = nodematerialsaddMdl.NODENAME; this._nodematerialsno = nodematerialsaddMdl.NODEMATERIALSNO; this._enumStatus = enumStatus; init(); if (enumStatus == StatusClass.AddNew) { this.Text = "增加节点材料信息"; } else { this.Text = "修改节点材料信息"; } }
//On software load, we de-serialize last status form file private void Form1_Load(object sender, EventArgs e) { string fileName = "Status.dat"; if (File.Exists(fileName)) { Stream s = new FileStream(fileName, FileMode.Open, FileAccess.Read); IFormatter f1 = new BinaryFormatter(); try { m_statusClass = (StatusClass)f1.Deserialize(s); } catch { s.Close(); m_statusClass = new StatusClass(); } s.Close(); } else { m_statusClass = new StatusClass(); } }
/// <summary>Constructor</summary> /// /// <param name="clazz">The error class for the exception</param> /// <param name="code">The error code for the exception</param> /// <param name="reason">The error message for the exception</param> /// <param name="custom">The custom code for the exception</param> /// /// <seealso cref="StatusClass"/> /// <seealso cref="StatusCode"/> public GmsecException(StatusClass clazz, StatusCode code, string reason, int custom) { }
/// <summary> /// 构造方法,用于新增课程类型 /// </summary> public frmCOURSE_TYPEADD() { InitializeComponent(); this._enumStatus = StatusClass.AddNew; this.Text = "增加课程类型"; }