private void toolStripButtonTar_Click(object sender, EventArgs e) { DataGridViewSelectedRowCollection rows = enforceLawGridViewWritServiceReceipt.SelectedRows; if (rows.Count == 0) return; if (rows[0].Tag == null) return; WritServiceReceipt writServiceReceipt = rows[0].Tag as WritServiceReceipt; if (writServiceReceipt.Status == 0) { CommonInvoke.MessageBox("在导出文书之前无法进行归档。\r\r--选择一条记录\r--点击编辑->导出\r--选择一条记录点击归档", MessageBoxButtons.OK); return; } UseWaitCursor = true; Application.DoEvents(); using (var form = new Maleos.Controls.ArchiveTypeSelector()) { var result = form.ShowDialog(); if (result == DialogResult.OK) { if (CommonInvoke.MessageBox("是否归档名称为\r\r" + writServiceReceipt.DocTitle + "\r\r的记录?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes) { int value = form.SelectedValue; Utility.UpdateStatus(writServiceReceipt.ID, DataBases.WritServiceReceipt.___GetTableName(), writServiceReceipt.FilePath, "文书送达回执", value, DataBases.WritServiceReceipt, DataBases.WritServiceReceipt.Status, DataBases.WritServiceReceipt.ID); enforceLawGridViewWritServiceReceipt.Rows.Remove(rows[0]); } } } UseWaitCursor = false; }
private void toolStripButtonTar_Click(object sender, EventArgs e) { DataGridViewSelectedRowCollection rows = enforceLawGridViewSpotCheck.SelectedRows; if (rows.Count == 0) return; if (rows[0].Tag == null) return; PunishmentDiscussRecord punishmentDiscussRecord = rows[0].Tag as PunishmentDiscussRecord; if (punishmentDiscussRecord.Status == 0) { CommonInvoke.MessageBox("在导出文书之前无法进行归档。\r\r--选择一条记录\r--点击编辑->导出\r--选择一条记录点击归档", MessageBoxButtons.OK); return; } UseWaitCursor = true; Application.DoEvents(); using (var form = new Maleos.Controls.ArchiveTypeSelector()) { var result = form.ShowDialog(); if (result == DialogResult.OK) { if (CommonInvoke.MessageBox("是否归档名称为\r\r" + punishmentDiscussRecord.PutOnRecordCaseName + "\r\r的记录?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes) { int value = form.SelectedValue; Utility.UpdateStatus(punishmentDiscussRecord.ID, DataBases.PunishmentDiscussRecord.___GetTableName(), punishmentDiscussRecord.FilePath, "行政处罚集体讨论记录", value, DataBases.PunishmentDiscussRecord, DataBases.PunishmentDiscussRecord.Status, DataBases.PunishmentDiscussRecord.ID); enforceLawGridViewSpotCheck.Rows.Remove(rows[0]); } } } UseWaitCursor = false; }
private void toolStripButtonTar_Click(object sender, EventArgs e) { DataGridViewSelectedRowCollection rows = enforceLawGridViewCaseExtensionClosedApproval.SelectedRows; if (rows.Count == 0) return; if (rows[0].Tag == null) return; CaseExtensionClosedApprovalToSibling caseExtensionClosedApprovalToSibling = rows[0].Tag as CaseExtensionClosedApprovalToSibling; if (caseExtensionClosedApprovalToSibling.Status == 0) { CommonInvoke.MessageBox("在导出文书之前无法进行归档。\r\r--选择一条记录\r--点击编辑->导出\r--选择一条记录点击归档", MessageBoxButtons.OK); return; } UseWaitCursor = true; Application.DoEvents(); using (var form = new Maleos.Controls.ArchiveTypeSelector()) { var result = form.ShowDialog(); if (result == DialogResult.OK) { if (CommonInvoke.MessageBox("是否归档名称为\r\r" + caseExtensionClosedApprovalToSibling.CaseName + "\r\r的记录?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes) { int value = form.SelectedValue; Utility.UpdateStatus(caseExtensionClosedApprovalToSibling.ID, DataBases.CaseExtensionClosedApprovalToSibling.___GetTableName(), caseExtensionClosedApprovalToSibling.FilePath, "案件延期办结审批表(本级)", value, DataBases.CaseExtensionClosedApprovalToSibling, DataBases.CaseExtensionClosedApprovalToSibling.Status, DataBases.CaseExtensionClosedApprovalToSibling.ID); enforceLawGridViewCaseExtensionClosedApproval.Rows.Remove(rows[0]); } } } UseWaitCursor = false; }
private void toolStripButton1_Click(object sender, EventArgs e) { DataGridViewSelectedRowCollection rows = enforceLawGridViewForceMeasureDecisionApprove.SelectedRows; if (rows.Count == 0) return; if (rows[0].Tag == null) return; ForceMeasureDecisionApprove forceMeasureDecisionApprove = rows[0].Tag as ForceMeasureDecisionApprove; if (forceMeasureDecisionApprove.Status == 0) { CommonInvoke.MessageBox("在导出文书之前无法进行归档。\r\r--选择一条记录\r--点击编辑->导出\r--选择一条记录点击归档", MessageBoxButtons.OK); return; } UseWaitCursor = true; Application.DoEvents(); using (var form = new Maleos.Controls.ArchiveTypeSelector()) { var result = form.ShowDialog(); if (result == DialogResult.OK) { if (CommonInvoke.MessageBox("是否归档名称为\r\r" + forceMeasureDecisionApprove.Party + "\r\r的记录?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == System.Windows.Forms.DialogResult.Yes) { int value = form.SelectedValue; Utility.UpdateStatus(forceMeasureDecisionApprove.ID, DataBases.SpotHandelDesision.___GetTableName(), forceMeasureDecisionApprove.FilePath, "强制措施决定审批", value, DataBases.ForceMeasureDecisionApprove, DataBases.ForceMeasureDecisionApprove.Status, DataBases.ForceMeasureDecisionApprove.ID); enforceLawGridViewForceMeasureDecisionApprove.Rows.Remove(rows[0]); } } } UseWaitCursor = false; }