예제 #1
0
        private void popEmpNo_BeforePopupOpen(object sender, uniERP.AppFramework.UI.Controls.Popup.BeforePopupOpenEventArgs e)
        {
            string strDate = dtYYYYMM.Value == null?uniBase.UDate.GetDBServerDateTime().ToString(CommonVariable.CDT_YYYY_MM_DD) : uniBase.UDate.GetFirstDay(Convert.ToDateTime(dtYYYYMM.Value.ToString())).ToShortDateString();

            string[] param_array = new string[] { popEmpNo.CodeValue, popEmpNo.CodeName, strDate };
            e.PopupPassData.CalledPopupID  = "uniERP.App.UI.Popup.EmpPopup_KO883";
            e.PopupPassData.PopupWinTitle  = "Employee ID";
            e.PopupPassData.PopupWinWidth  = 800;
            e.PopupPassData.PopupWinHeight = 700;
            e.PopupPassData.Data           = param_array;
        }
예제 #2
0
        private void uniGrid1_BeforePopupOpen(object sender, uniERP.AppFramework.UI.Controls.Popup.BeforePopupOpenEventArgs e)
        {
            switch (uniGrid1.ActiveCell.Column.ToString().ToUpper().Trim())
            {
            case "DILIG_EMP_NO":

                if (dtYYYYMM.Value == null)
                {
                    e.Cancel = true;
                    break;
                }

                e.PopupPassData.CalledPopupID  = "uniERP.App.UI.Popup.EmpPopup_KO883";
                e.PopupPassData.PopupWinTitle  = "Employee PopUp";
                e.PopupPassData.PopupWinWidth  = 800;
                e.PopupPassData.PopupWinHeight = 700;

                string strDate = dtYYYYMM.Value == null?uniBase.UDate.GetDBServerDateTime().ToString(CommonVariable.CDT_YYYY_MM_DD) : uniBase.UDate.GetFirstDay(Convert.ToDateTime(dtYYYYMM.Value.ToString())).ToShortDateString();

                //e.PopupPassData.Data = new string[] { popEmpNo.CodeValue, popEmpNo.CodeName, strDate, "1", "" };
                e.PopupPassData.Data = new string[] { "", "", strDate, "1", "" };

                break;

            case "PROJECT_CODE":

                e.PopupPassData.CalledPopupID = "uniERP.App.UI.POPUP.Y7001PA_KO883";
                e.PopupPassData.PopupWinTitle = "Projecct State Pop-up";
                e.PopupPassData.Data          = null;

                break;

            default:
                break;
            }
        }
예제 #3
0
        private void popDeptCd_BeforePopupOpen(object sender, uniERP.AppFramework.UI.Controls.Popup.BeforePopupOpenEventArgs e)
        {
            e.PopupPassData.PopupWinTitle    = "P/R Dept.";
            e.PopupPassData.ConditionCaption = "P/R Dept.";

            e.PopupPassData.SQLFromStatements      = "B_ACCT_DEPT(NOLOCK)";
            e.PopupPassData.SQLWhereInputCodeValue = this.popDeptCd.CodeValue.Trim();
            e.PopupPassData.SQLWhereInputNameValue = "";
            e.PopupPassData.SQLWhereStatements     = "ORG_CHANGE_ID= " + uniBase.UCommon.FilterVariable(CommonVariable.gChangeOrgId, "''", enumDef.FilterVarType.BraceWithSingleQuotation, true);
            e.PopupPassData.DistinctOrNot          = true;

            e.PopupPassData.GridCellCode    = new String[2];
            e.PopupPassData.GridCellCaption = new String[2];
            e.PopupPassData.GridCellType    = new enumDef.GridCellType[2];

            e.PopupPassData.GridCellCode[0] = "DEPT_CD";
            e.PopupPassData.GridCellCode[1] = "DEPT_NM";

            e.PopupPassData.GridCellCaption[0] = "P/R Dept.";
            e.PopupPassData.GridCellCaption[1] = "P/R Dept. Name";

            e.PopupPassData.GridCellType[0] = enumDef.GridCellType.Edit;
            e.PopupPassData.GridCellType[1] = enumDef.GridCellType.Edit;
        }
예제 #4
0
 private void popProject_BeforePopupOpen(object sender, uniERP.AppFramework.UI.Controls.Popup.BeforePopupOpenEventArgs e)
 {
     e.PopupPassData.CalledPopupID = "uniERP.App.UI.POPUP.Y7001PA_KO883";
     e.PopupPassData.PopupWinTitle = "Projecct State Pop-up";
     e.PopupPassData.Data          = null;
 }