Exemple #1
0
        private void simpleButton_SaveStu_Click(object sender, System.EventArgs e)
        {
//			isForStudent = true;
//			lastSyncIndex = 0;
//			isSendCustomButtonSucceed = false;
//			simpleButton_SaveStu.Enabled = false;
//			simpleButton_SaveTea.Enabled = false;
//			BeginToSendCustomButtonInfo();

/*以上是新功能*/

            FlowStateSystem flowStateSystem = new FlowStateSystem();

            for (int i = 0; i < gridView3.RowCount; i++)
            {
                Int16  stateID   = (Int16)(Convert.ToInt16(gridView3.GetDataRow(i)["state_flowState"]) + 5);
                string stateName = gridView3.GetDataRow(i)["state_flowStateName"].ToString();
                flowStateSystem.UpdateStuState(stateID, stateName);
                //BeginToSendCustomButtonInfo();

//				if (isSendCustomButtonSucceed)
//				{
//					flowStateSystem.UpdateStuState(stateID,stateName);
//				}
//				else
//				{
//					MessageBox.Show("保存失败,请重试!", "系统信息!", MessageBoxButtons.OK, MessageBoxIcon.Error);
//					return;
//				}
            }

            MessageBox.Show("保存成功.", "系统信息!",
                            MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
Exemple #2
0
        private void simpleButton2_Click(object sender, System.EventArgs e)
        {
            FlowStateSystem flowStateSystem = new FlowStateSystem();

            flowStateSystem.ClearFlowState(1);
            gridControl_StuCustomInfo.DataSource = flowStateSystem.GetStuState().Tables[0];
            MessageBox.Show("清空完毕!");
        }
Exemple #3
0
        private void simpleButton_SaveStu_Click(object sender, System.EventArgs e)
        {
            FlowStateSystem flowStateSystem = new FlowStateSystem();

            for (int i = 0; i < gridView3.RowCount; i++)
            {
                Int16  stateID   = (Int16)(Convert.ToInt16(gridView3.GetDataRow(i)["state_flowState"]) + 5);
                string stateName = gridView3.GetDataRow(i)["state_flowStateName"].ToString();

                flowStateSystem.UpdateStuState(stateID, stateName);
            }

            MessageBox.Show("保存成功.", "系统信息!",
                            MessageBoxButtons.OK, MessageBoxIcon.Information);
        }