MES/BusinessManger/JobManger/JobWork_List.cs
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using MES.BaseOperater;
using MES.BLL.BusinessBLL;
using MES.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WRZS.Common.Common;
namespace MES.BusinessManger.JobManger
{
public partial class JobWork_List : FartherWindow
{
public JobWork_List()
{
InitializeComponent();
}
#region//显示序号
private void gridViewBase_CustomDrawRowIndicator(object sender, DevExpress.XtraGrid.Views.Grid.RowIndicatorCustomDrawEventArgs e)
{
if (e.Info.IsRowIndicator && e.RowHandle > -1)
{
e.Info.DisplayText = (e.RowHandle + 1).ToString();
}
}
#endregion
#region//具体的操作方法
private void OpearterData(OperationMessageType operationMessageType)
{
T_JobWork info = new T_JobWork();
switch (operationMessageType)
{
#region //添加窗体
case OperationMessageType.CommonAdd:
var addForm = new JobWork_Form();
addForm.CurrentType = operationMessageType;
addForm.CurrentUser = CurrentUser;
addForm.CurrentEntity = new T_JobWork();
addForm.Text = "添加报工";
if (addForm.ShowDialog() != DialogResult.OK)
return;
QueryDataList();
break;
#endregion
#region //修改删除
case OperationMessageType.CommonEdit:
case OperationMessageType.CommonDelete:
DataRow _dataRow = gridViewBase.GetDataRow(gridViewBase.FocusedRowHandle);
if (_dataRow == null)
{
MessageBoxHelper.ShowError("请选择一条数据进行操作。");
后面还有 180 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
