public override void InitStrap()
{
base.InitStrap();
_purInboundArgs = new PurInboundArgs(); //FormArgs
_inHeaderList = new InHeaderList(_purInboundArgs, _purInboundZipper); //ํด๋ ์๋ธํผ
_inDetailList = new InDetailList(_purInboundArgs, _purInboundZipper); //๋ํ
์ผ ์๋ธํผ
_inHuList = new InHuList(_purInboundArgs, _purInboundZipper); //๋ํ
์ผ ์๋ธํผ
AddSubForm(this, _inHeaderList, layoutControlGroup2); //ํค๋์๋ธํผ์ Layout์ ์ถ๊ฐ
AddSubForm(this, _inDetailList, layoutControlGroup3); //๋ํ
์ผ์๋ธํผ์ Layout์ ์ถ๊ฐ
AddSubForm(this, _inHuList, layoutControlGroup4); //๋ํ
์ผ์๋ธํผ์ Layout์ ์ถ๊ฐ
_inHeaderList.AddRefreshTargetSubForm(_inDetailList); //๋ฐ์ดํฐ ๊ฐฑ์ ์ ๋ฏธ์ ์ฅ๋ฐ์ดํฐ ์ฒดํฌ
_inHeaderList.AddRefreshTargetSubForm(_inHuList); //๋ฐ์ดํฐ ๊ฐฑ์ ์ ๋ฏธ์ ์ฅ๋ฐ์ดํฐ ์ฒดํฌ
_inDetailList.AddRefreshTargetSubForm(_inHuList); //๋ฐ์ดํฐ ๊ฐฑ์ ์ ๋ฏธ์ ์ฅ๋ฐ์ดํฐ ์ฒดํฌ
InitFields(new FieldArgs_StrapMainForm() //๋ฉ์ธํผ ์ด๊ธฐํ ๋ฉ์๋
{
FormArgs = _purInboundArgs,
InitlistForm = _inHeaderList,
StrapLayout = strapLayout1
});
InitRibbonButtons(true, true, false, true, true); //๋ฆฌ๋ณธ๋ฉ๋ด ์ด๊ธฐํ
_inHeaderList.ModelSelectedEvent += InHeaderList_ModelSelectedEvent; //ํค๋ํผ์ ๋ชจ๋ธ์
๋ ํฐ๋ ์ด๋ฒคํธ
_inDetailList.ModelSelectedEvent += InDetailList_ModelSelectedEvent; //๋ํ
์ผ ์๋ธํผ์ ์
๋ ํฐ๋ ์ด๋ฒคํธ
this.SelectedSubFormChanged += PurInboundMain_SelectedSubFormChanged; //์๋ธํผ ์ ํ ๋ณ๊ฒฝ์ ์ด๋ฒคํธ(๋ฆฌ๋ณธ๋ฒํผ์กฐ์ )
_lep = LookUpEditPocket.GetInstance();
_lep.SetByQuery(strapLookUpEdit1, "MM.PurInbound.BpList_WithAll", new
{
COMP_CD = Common.LoginInfo.UserInfo.CompCode
}, "๊ฑฐ๋์ฒ์ฝ๋", "๊ฑฐ๋์ฒ๋ช
");
strapLookUpEdit2.EditValueChanged += StrapLookUpEdit2_EditValueChanged;
strapLookUpEdit3.EditValueChanged += StrapLookUpEdit3_EditValueChanged;
}