|
|
@ -191,52 +191,11 @@ namespace QMAPP.WinForm.Forms.TianJin |
|
|
|
DataTable tbl = agent.InvokeServiceFunction<DataTable>(QMAPP.ServicesAgent.FrmPlaceManage.TJFrmPlaceBLL_GetList.ToString(), pFisType, WORKCENTER_CODE); |
|
|
|
tbl.AcceptChanges(); |
|
|
|
|
|
|
|
//var tblf = tbl.Select("MOULD_CODE = '左前'");
|
|
|
|
//var tblr = tbl.Select("MOULD_CODE = '左后'");
|
|
|
|
//var tbrf = tbl.Select("MOULD_CODE = '右前'");
|
|
|
|
//var tbrr = tbl.Select("MOULD_CODE = '右后'");
|
|
|
|
|
|
|
|
//if (tb.Rows.Count > 0)
|
|
|
|
//{
|
|
|
|
// tbz = tb.Select(t=>t.);
|
|
|
|
//}
|
|
|
|
|
|
|
|
DataTable tbz = new DataTable(); |
|
|
|
|
|
|
|
|
|
|
|
if (tbl.Rows.Count <= 0) |
|
|
|
{ |
|
|
|
//#region 重新排序
|
|
|
|
//int defaultNum = Convert.ToInt32(QMAPP.WinForm.Common.LocalSetting.Settings["ShowDataCount", "4"]);
|
|
|
|
//if (pFisType == "01")
|
|
|
|
//{
|
|
|
|
// for (int i = 1; i < 100; i++)
|
|
|
|
// {
|
|
|
|
// var num = Convert.ToInt32(i * defaultNum);
|
|
|
|
// if (num > tblf.Count())
|
|
|
|
// {
|
|
|
|
// for (int a = 0; a <= defaultNum; a++)
|
|
|
|
// {
|
|
|
|
// tbz.Rows.Add(tblf[i-1+a]);
|
|
|
|
// }
|
|
|
|
// for (int a = 0; a <= defaultNum; a++)
|
|
|
|
// {
|
|
|
|
// tbz.Rows.Add(tblr[i - 1 + a]);
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// else
|
|
|
|
// {
|
|
|
|
// var tblfcount =tblf.Count() - (i - 1) * defaultNum;
|
|
|
|
// for
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
//}
|
|
|
|
//else
|
|
|
|
//{
|
|
|
|
|
|
|
|
//}
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
DataTable dt = (DataTable)dgvMATChange.DataSource; |
|
|
|
if (dt != null) |
|
|
|
{ |
|
|
@ -1150,7 +1109,7 @@ namespace QMAPP.WinForm.Forms.TianJin |
|
|
|
strcarsetdesc_cn = dgvMATChange.Rows[temprowindex].Cells["MATERIAL_NAME"].Value.ToString(); |
|
|
|
//车型
|
|
|
|
strlineno = dgvMATChange.Rows[temprowindex].Cells["LINENO"].Value.ToString(); |
|
|
|
|
|
|
|
strvin = Code; |
|
|
|
//扫描状态
|
|
|
|
strscanstat = dgvMATChange.Rows[temprowindex].Cells["STATE"].Value.ToString(); |
|
|
|
dgvrowindex = temprowindex; |
|
|
@ -1230,7 +1189,7 @@ namespace QMAPP.WinForm.Forms.TianJin |
|
|
|
var mach = inputstring.Substring(4, inputstring.Length - 4); |
|
|
|
var plan = new TJOrderPlan(); |
|
|
|
|
|
|
|
plan.PLAN_DATE = DateTime.Now; |
|
|
|
plan.PLAN_DATE = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd")); |
|
|
|
plan.QTY = defaultNum/2; |
|
|
|
if (mach.Substring(0, 3) == "770") |
|
|
|
plan.LINENO = "770B"; |
|
|
@ -1251,11 +1210,6 @@ namespace QMAPP.WinForm.Forms.TianJin |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//var list = agent.InvokeServiceFunction<List<Materiel>>("TJDoorPlankPlanBLL_GetListMachine", plan.MATERIAL_CODE);
|
|
|
|
//if (list != null)
|
|
|
|
// plan.MATERIAL_NAME = list[0].MATERIALNAME;
|
|
|
|
|
|
|
|
//QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent();
|
|
|
|
var RESULT = agent.InvokeServiceFunction<DataResult<int>>("TJDoorPlankPlanBLL_Insert", plan); |
|
|
|
if (RESULT.IsSuccess == true) |
|
|
|
{ |
|
|
|