MES/BusinessManger/InWareHouseManger/InWareHouse_Select_Form.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using MES.BaseOperater;
using MES.BLL.BusinessBLL;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace MES.BusinessManger.InWareHouseManger
{
public partial class InWareHouse_Select_Form : Form
{
#region //定义变量信息
public DataRow InWareHouseRow { get; set; }
public DataTable InWareHouseMaterialData { get; set; }
#endregion
public InWareHouse_Select_Form()
{
InitializeComponent();
}
#region //查询关联数据 已经审核的采购订单
private void QueryDataList()
{
StringBuilder strBuilder = new StringBuilder();
strBuilder.Append(" and a.create_time between '" + dateStart.Text + "' and '" + dateEnd.Text + "'");
strBuilder.Append(" and a.InWareHouse_Status='2' order by a.create_time desc");
int index = gridViewBase.FocusedRowHandle;
gridControlBase.DataSource = new InWareHouseBLL().GetInWareHouseListByCondtion(strBuilder.ToString());
gridViewBase.FocusedRowHandle = index;
}
#endregion
#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();
}
}
private void gridViewMaterial_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 gridViewBase_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
{
DataRow _dataRow = gridViewBase.GetDataRow(gridViewBase.FocusedRowHandle);
if (_dataRow == null)
后面还有 21 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
