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); }
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); }