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.
96 lines
2.6 KiB
96 lines
2.6 KiB
3 years ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Text;
|
||
|
using Stone.WinBiz.BasicData;
|
||
|
|
||
|
namespace Stone.WinModule.BasicData
|
||
|
{
|
||
|
public class F_Factory
|
||
|
{
|
||
|
public static frmBaseMainDetail ShowMainDetail(F_Base f_base)
|
||
|
{
|
||
|
if (f_base.type == "Appconfig")
|
||
|
{
|
||
|
frmAppconfigDetail frm = new frmAppconfigDetail();
|
||
|
frm.m_Base = f_base;
|
||
|
return frm;
|
||
|
}
|
||
|
|
||
|
|
||
|
if (f_base.type == "Color")
|
||
|
{
|
||
|
frmColorDetail frm = new frmColorDetail();
|
||
|
frm.m_Base = f_base;
|
||
|
return frm;
|
||
|
}
|
||
|
|
||
|
if (f_base.type == "CarModel")
|
||
|
{
|
||
|
frmCarModelDetail frm = new frmCarModelDetail();
|
||
|
frm.m_Base = f_base;
|
||
|
return frm;
|
||
|
}
|
||
|
|
||
|
if (f_base.type == "PartsFamily")
|
||
|
{
|
||
|
frmPartsFamilyDetail frm = new frmPartsFamilyDetail();
|
||
|
frm.m_Base = f_base;
|
||
|
return frm;
|
||
|
}
|
||
|
|
||
|
if (f_base.type == "SupplyGroup")
|
||
|
{
|
||
|
frmSupplyGroupDetail frm = new frmSupplyGroupDetail();
|
||
|
frm.m_Base = f_base;
|
||
|
return frm;
|
||
|
}
|
||
|
|
||
|
if (f_base.type == "Feature")
|
||
|
{
|
||
|
frmFeatureDetail frm = new frmFeatureDetail();
|
||
|
frm.m_Base = f_base;
|
||
|
return frm;
|
||
|
}
|
||
|
|
||
|
if (f_base.type == "FeaturePart")
|
||
|
{
|
||
|
Stone.WinModule.BasicData.frmFeaturePartDetail frm = new Stone.WinModule.BasicData.frmFeaturePartDetail();
|
||
|
frm.m_Base = f_base;
|
||
|
return frm;
|
||
|
}
|
||
|
|
||
|
if (f_base.type == "AssyPart")
|
||
|
{
|
||
|
Stone.WinModule.BasicData.frmAssyPartDetail frm = new Stone.WinModule.BasicData.frmAssyPartDetail();
|
||
|
frm.m_Base = f_base;
|
||
|
return frm;
|
||
|
}
|
||
|
|
||
|
if (f_base.type == "JIS_Limits")
|
||
|
{
|
||
|
Stone.WinModule.BasicData.frmJISLimitsDetail frm = new Stone.WinModule.BasicData.frmJISLimitsDetail();
|
||
|
frm.m_Base = f_base;
|
||
|
return frm;
|
||
|
}
|
||
|
|
||
|
if (f_base.type == "Product")
|
||
|
{
|
||
|
frmProductDetail frm = new frmProductDetail();
|
||
|
frm.m_Base = f_base;
|
||
|
return frm;
|
||
|
}
|
||
|
|
||
|
if (f_base.type == "Location")
|
||
|
{
|
||
|
frmLocationDetail frm = new frmLocationDetail();
|
||
|
frm.m_Base = f_base;
|
||
|
return frm;
|
||
|
}
|
||
|
|
||
|
|
||
|
return null;
|
||
|
}
|
||
|
}
|
||
|
}
|