MES/BusinessManger/DeviceRepairManger/Repair_List.cs

(开头部分) 10KB

这里只显示每个文件的开头 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.DeviceRepairManger
{
    public partial class Repair_List : FartherWindow
    {
        public Repair_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_Repair info = new T_Repair();

            switch (operationMessageType)
            {
                #region //添加窗体
                case OperationMessageType.CommonAdd:

                    Repair_Form repairForm = new Repair_Form();
                    repairForm.Text = "申请维修";
                    repairForm.CurrentUser = this.CurrentUser;
                    repairForm.CurrentType = operationMessageType;

                    if (repairForm.ShowDialog() != DialogResult.OK)
                        return;
                    QueryDataList();
                    break;
                #endregion
                #region //修改删除
                case OperationMessageType.CommonEdit:
                case OperationMessageType.CommonDelete:

                    DataRow _dataRow = gridViewBase.GetDataRow(gridViewBase.FocusedRowHandle);

                    if (_dataRow == null)
                    {
后面还有 183 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。