public PeriodsAdmin(HMConnection.HMCon hmConObject, TUC_HMDevXManager.TUC_HMDevXManager dxMgr) { // // Required for Windows Form Designer support // InitializeComponent(); periods = new GL_Periods.UserControl1(hmConObject); dxManager = dxMgr; periods.Style = dxMgr; periods.Parent = this; periods.Dock = DockStyle.Fill; foreach (DevExpress.XtraLayout.BaseLayoutItem itm in periods.loControl.Items) { //first remove the layout controlItem if (itm.Name == "layoutControlItem4") { itm.Dispose(); break; } } foreach (Control ctrl in periods.loControl.Controls) { //then remove the control in the item if (ctrl.Name == "btnUpdate") { ctrl.Visible = false; ctrl.Enabled = false; periods.loControl.Controls.Remove(ctrl); break; } } }
public ucSuppChange(HMCon Connection, TUC_HMDevXManager.TUC_HMDevXManager DevXMgr) { this.Connection = Connection; this.DevXMgr = DevXMgr; InitializeComponent(); RunSetups(); }
public frmEH_Launch(HMConnection.HMCon Connection, TUC_HMDevXManager.TUC_HMDevXManager DevXMgr, int AP_INV_HEADER_ID) { this.Connection = Connection; this.DevXMgr = DevXMgr; InitializeComponent(); ucHistoryView1 = new SubmissionHistory.ucHistoryView(); ucHistoryView1.Dock = DockStyle.Fill; ucHistoryView1.Parent = this; ucHistoryView1.TypeID = CONST_SUB_PAYMENT_REQUEST; ucHistoryView1.HMConnection = Connection; ucHistoryView1.TUC_DevXMgr = DevXMgr; object CLog_FieldLink_ID = Connection.SQLExecutor.ExecuteScalar("exec dbo.sp_WS_ChatFieldLinkGetID 'WS_INV_HEADER.WS_INV_ID', 'PayApproval'", Connection.TRConnection); ucHistoryView1.ChatFieldLink = Convert.ToInt32(CLog_FieldLink_ID); string sSQL = @"select ws_inv_id from ws_inv_header where ap_inv_header_id=" + AP_INV_HEADER_ID; object oWS_INV_ID = Connection.SQLExecutor.ExecuteScalar(sSQL, Connection.TRConnection); if (oWS_INV_ID == null || oWS_INV_ID == DBNull.Value) { oWS_INV_ID = -1; } ucHistoryView1.DetailID = Convert.ToInt32(oWS_INV_ID); ucHistoryView1.LoadHistory(); }
public frmPOSelect(HMCon Connection, TUC_HMDevXManager.TUC_HMDevXManager DevXMgr, bool ShowContractPOSummary) { this.Connection = Connection; this.myMgr = DevXMgr; InitializeComponent(); ucMPOR = new ucMatchPOReceipt(Connection, DevXMgr); ucMPOR.Parent = xtraTabPage1; ucMPOR.Dock = DockStyle.Fill; ucMPOR.ResetSize(); ucUCPO = new ucUnreleasedContractPO(Connection, DevXMgr); ucUCPO.Parent = xtraTabPage2; ucUCPO.Dock = DockStyle.Fill; ucUCPO.ResetSize(); ucSummCPO = new ucSummaryContractPO(Connection, DevXMgr); ucSummCPO.Parent = xtraTabPage3; ucSummCPO.Dock = DockStyle.Fill; if (!ShowContractPOSummary) { xtraTabPage3.PageVisible = false; } else { xtraTabPage2.PageVisible = false; } }
public frmAppDec(HMCon Connection, TUC_HMDevXManager.TUC_HMDevXManager DevXMgr) { this.Connection = Connection; this.DevXMgr = DevXMgr; Popup = new frmPopup(DevXMgr); InitializeComponent(); }
public WpfMapDrawBase(TUC_HMDevXManager.TUC_HMDevXManager hmDevMgr) : base(hmDevMgr) { _drawing = false; mapView.MapViewTapped += MapView_MapViewTapped; _penList = new Dictionary <int, PenBase>(); }
public void Init(HMCon con, TUC_HMDevXManager.TUC_HMDevXManager hmDevMgr, GridView gv, List <IMapLayer> layers, List <PosGenerator> posGens) { _hmCon = con; _hmDevMgr = hmDevMgr; _gv = gv; _layers = layers; _posGens = posGens; linkGen.Enabled = _posGens != null; _pop = new frmPopup(_hmDevMgr); if (!ArcGISRuntimeEnvironment.IsInitialized) { try { //ArcGISRuntimeEnvironment.InstallPath = Application.StartupPath; ArcGISRuntimeEnvironment.ClientId = "EdzP18VEt80l7prT"; ArcGISRuntimeEnvironment.Initialize(); } catch (Exception ex) { _pop.ShowPopup($"Unable to initialize the ArcGIS Runtime with the client ID provided: {ex.Message}"); } } _hmDevMgr.FormInit(this); }
public SupplierSubConValidator(HMCon Connection, TUC_HMDevXManager.TUC_HMDevXManager DevXMgr) { this.Connection = Connection; this.DevXMgr = DevXMgr; Popup = new frmPopup(DevXMgr); RunSetups(); }
public ucDrawBase CreateInstance(HMCon con, TUC_HMDevXManager.TUC_HMDevXManager hmDevMgr, WpfMapDrawBase map, IMapLayer info, int layerIndex) { if (info is MapPointLayer) { return(new ucDrawPoint(con, hmDevMgr, map, info.ConvertTo <MapPointLayer>(), layerIndex)); } else if (info is MapShapeLayer) { return(new ucDrawShape(con, hmDevMgr, map, info.ConvertTo <MapShapeLayer>(), layerIndex)); } else if (info is MapLineLayer) { return(new ucDrawLine(con, hmDevMgr, map, info.ConvertTo <MapLineLayer>(), layerIndex)); } else if (info is MapEventLayer) { if (_eventDrawer == null) { _eventDrawer = new ucDrawEvents(con, hmDevMgr, map, info.ConvertTo <MapEventLayer>(), layerIndex); return(_eventDrawer); } else { _eventDrawer.AddEventLayer(info.ConvertTo <MapEventLayer>(), layerIndex); return(null); } } return(null); }
public UserExceptions(HMConnection.HMCon Connection, TUC_HMDevXManager.TUC_HMDevXManager DevXMgr, int AlertPointID) { this.Connection = Connection; this.DevXMgr = DevXMgr; this.AlertPointID = AlertPointID; Popup = new frmPopup(DevXMgr); InitializeComponent(); TR_Conn.ConnectionString = this.Connection.TRConnection; WEB_Conn.ConnectionString = this.Connection.WebConnection; string sSelect = "select isnull(alert,'') from ApplicationAlertPoint where id=" + AlertPointID; this.Text = "Alert: " + Connection.SQLExecutor.ExecuteScalar(sSelect, Connection.TRConnection); daUser.SelectCommand.CommandText = "SELECT u.NAME, d.DESCRIPTION " + "FROM MLUSER u " + "LEFT OUTER JOIN DEPARTMENT d ON d.NAME = u.DEPARTMENT " + "where u.name not in ( select mluser from AlertPointAccess where AAP_ID=" + AlertPointID + " ) " + "ORDER BY d.DESCRIPTION, u.NAME"; daExceptions.SelectCommand.Parameters["@aap_id"].Value = AlertPointID; daExceptions.Fill(dsExceptions1); daDepartment.Fill(dsDepartment1); daUser.Fill(dsUser1); daUserDep.Fill(dsUserDep1); }
public fLauncher(HMCon Connection, TUC_HMDevXManager.TUC_HMDevXManager DevXMgr, int AlertID) { this.Connection = Connection; this.DevXMgr = DevXMgr; _AlertID = AlertID; InitializeComponent(); LoadAlertProperty(); }
public ucSupplierView(HMCon Connection, TUC_HMDevXManager.TUC_HMDevXManager DevXMgr) { this.Connection = Connection; this.DevXMgr = DevXMgr; Popup = new frmPopup(DevXMgr); InitializeComponent(); RunSetups(); }
public ucLevyMatch(HMConnection.HMCon Connection, TUC_HMDevXManager.TUC_HMDevXManager DevXMgr) { this.Connection = Connection; this.DevXMgr = DevXMgr; Popup = new WS_Popups.frmPopup(DevXMgr); InitializeComponent(); RunSetups(); }
public ucSetup_WorkClasses(HMConnection.HMCon pConn, TUC_HMDevXManager.TUC_HMDevXManager pDevMg) { InitializeComponent(); hmConn = pConn; hmDevMgr = pDevMg; sqlConnTR.ConnectionString = hmConn.TRConnection; LoadUserControls(); }
public ucMapViewer(TUC_HMDevXManager.TUC_HMDevXManager hmDevMgr) { InitializeComponent(); _hmDevMgr = hmDevMgr; _map = new WpfMapViewer(_hmDevMgr); host.Child = _map; }
public void Init(TUC_HMDevXManager.TUC_HMDevXManager hmDevMgr, string msg, DataTable table) { _hmDevMgr = hmDevMgr; lableResult.Text = msg; _table = table; gc.DataSource = _table; }
public ucSetup_OvertimeLimits_BillingThresholds(HMConnection.HMCon pConn, TUC_HMDevXManager.TUC_HMDevXManager pDevMg) { InitializeComponent(); hmConn = pConn; hmDevMgr = pDevMg; sqlConnTR.ConnectionString = hmConn.TRConnection; sqlConnTR1.ConnectionString = hmConn.TRConnection; LoadUserControls(); }
public ucMasterView(HMCon Connection, TUC_HMDevXManager.TUC_HMDevXManager DevXMgr) { this.Connection = Connection; this.DevXMgr = DevXMgr; CBOUtil = new ComboSearch.Util(DevXMgr); Popup = new frmPopup(DevXMgr); InitializeComponent(); RunSetups(); }
private void Form1_Load(object sender, EventArgs e) { TUC_HMDevXManager.TUC_HMDevXManager dev = new TUC_HMDevXManager.TUC_HMDevXManager(); dev.AppInit("Adam"); ucAP.ucAP ap = new ucAP.ucAP("web_steelcraft_v10", "CSMSQL2012", "13", "Adam", dev); ap.Parent = this; ap.Visible = true; ap.Dock = DockStyle.Fill; }
public ucAPPaymentRequest(HMCon Connection, TUC_HMDevXManager.TUC_HMDevXManager DevXMgr, KeyControlAccess.Validator KCA_Validator) { this.Connection = Connection; this.DevXMgr = DevXMgr; this.KCA_Validator = KCA_Validator; Popup = new frmPopup(DevXMgr); InitializeComponent(); RunSetups(); }
public ucCommPurDocMerge(HMConnection.HMCon pConn, TUC_HMDevXManager.TUC_HMDevXManager pDevMgr, int pAlertPointID) { InitializeComponent(); hmConn = pConn; hmDevMgr = pDevMgr; AlertPointID = pAlertPointID; sqlConnTR.ConnectionString = hmConn.TRConnection; Popups = new WS_Popups.frmPopup(this.hmDevMgr); }
public ucStakeholderType(HMConnection.HMCon con, TUC_HMDevXManager.TUC_HMDevXManager tuc, int AlertPoint) { InitializeComponent(); Connection = con; DevXMgr = tuc; _AlertPoint = AlertPoint; TR_Conn.ConnectionString = Connection.TRConnection; daAlert_PC_Stakeholder.SelectCommand.Parameters["@AlertID"].Value = _AlertPoint; }
public frmManChk(HMCon Connection, TUC_HMDevXManager.TUC_HMDevXManager DevXMgr, string sSupplier, int iAP_INV_HEADER_ID) { this.Connection = Connection; this.myMgr = DevXMgr; this.Popup = new frmPopup(myMgr); _Supplier = sSupplier; _AP_INV_HEADER_ID = iAP_INV_HEADER_ID; InitializeComponent(); TR_Conn = new SqlConnection(Connection.TRConnection); }
public XtraForm1() { Connection = new HMCon("web_strike_test", "dev11", 12, "adam"); DevXMgr = new TUC_HMDevXManager.TUC_HMDevXManager(); InitializeComponent(); AP_PaymentReqApp.ucAPPaymentRequest uc = new AP_PaymentReqApp.ucAPPaymentRequest(Connection, DevXMgr); uc.Dock = DockStyle.Fill; uc.Parent = this; }
public ucDrawBase(HMCon con, TUC_HMDevXManager.TUC_HMDevXManager hmDevMgr, WpfMapDrawBase map) { _hmCon = con; _hmDevMgr = hmDevMgr; _pop = new frmPopup(hmDevMgr); _map = map; _attrTable = new DataTable(); _attrTable.Columns.Add(new DataColumn("Attribute")); _attrTable.Columns.Add(new DataColumn("Value")); }
public frmLoadEquiClasses(HMConnection.HMCon pReflexCon, TUC_HMDevXManager.TUC_HMDevXManager pStyle, int piPri_ID) { InitializeComponent(); ReflexCon = pReflexCon; dxStyle = pStyle; iPri_ID = piPri_ID; sqlTR.ConnectionString = ReflexCon.TRConnection; tcMain.ShowTabHeader = DevExpress.Utils.DefaultBoolean.False; }
public ucDrawPoint(HMCon con, TUC_HMDevXManager.TUC_HMDevXManager hmDevMgr, WpfMapDrawBase map, MapPointLayer layer, int layerIndex) : base(con, hmDevMgr, map) { InitializeComponent(); _layer = layer; _layerIndex = layerIndex; gcAttr.DataSource = _attrTable; InDrawingStatus(false); }
public frmDocHotLink(HMConnection.HMCon Connection, TUC_HMDevXManager.TUC_HMDevXManager DevXMgr, string RelType, int RelType_ID, int Supplier_ID) { this.Connection = Connection; this.DevXMgr = DevXMgr; _RelType_ID = RelType_ID; _RelType = RelType; _Supplier_ID = Supplier_ID; Popup = new WS_Popups.frmPopup(DevXMgr); InitializeComponent(); RunSetups(); }
public frmLoadBurdens(HMConnection.HMCon pReflexCon, TUC_HMDevXManager.TUC_HMDevXManager pStyle, int piPri_ID) { InitializeComponent(); ReflexCon = pReflexCon; dxStyle = pStyle; iPri_ID = piPri_ID; sqlConnTR.ConnectionString = ReflexCon.TRConnection; GGBurden = new TUC_GridG.GridG(ReflexCon.CompanyServer, ReflexCon.TRDB, gvSelectableBurdens, daBurdenSelection, dsBurdenSelection1); Popups = new WS_Popups.frmPopup(dxStyle); tcMain.ShowTabHeader = DevExpress.Utils.DefaultBoolean.False; }
public frmAP(string WebDB, string Server, string CompanyID, string User) { TUC_HMDevXManager.TUC_HMDevXManager DevXMgr = new TUC_HMDevXManager.TUC_HMDevXManager(); DevXMgr.AppInit(User); Connection = new HMCon(WebDB, Server, Convert.ToInt32(CompanyID), User); Popup = new WS_Popups.frmPopup(DevXMgr); InitializeComponent(); AP = new ucAP.ucAP(WebDB, Server, CompanyID, User, DevXMgr); AP.Dock = DockStyle.Fill; AP.Parent = this; }