北京安通林JIS系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

55 lines
1.5 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Stone.WinBiz.BasicData;
using Stone.Entity;
using System.Windows.Forms;
using Stone.Common;
using Stone.WinBiz.SystemData;
namespace Stone.WinBiz.JisData
{
public class F_AJIS : F_Base
{
public int jistype = 0;
public string address = "";
public F_AJIS(int _jistype, string _address)
{
jistype = _jistype;
address = _address;
this.type = "AJIS" + _jistype + _address;
this.dateWhere = "[ArrivalDateTime]>='{0}' and [ArrivalDateTime]<='{1}'";
this.strOrder = "[SequenceNo] asc";
if (jistype == 0) //门板
{
this.name = $"AJIS门板-{F_Common.GetAddress(_address)}";
this.entity = new Entity_t_AJIS();
}
else
{
this.name = $"AJIS地毯-{F_Common.GetAddress(_address)}";
this.entity = new Entity_t_AJISCarpet(); //地毯
}
}
public override void GetView(DataGridView dgv)
{
base.GetView(dgv);
dgv.Columns["ArrivalDateTime"].HeaderText = "DeliveryDateTime";
}
public override void BindPageData(string strWhere)
{
if (entityView == null) entityView = entity;
dsMain = entityView.GetData("", $"({strWhere}) and [Address]='{address}'", strOrder);
dsMain.Tables[0].TableName = "Data";
}
}
}