// private void NameChanged(object Sender, XEventArgs e) // { // } // protected void Page_Load(object sender, EventArgs e) // { // } // private void checkActive(object Sender, XEventArgs e) // { // } //public override void AfterPost() //{ // itemForm.syncOnSave(); //} public override void Initialize() { ItemTable = XModule.GetTable("MTRL"); itemForm = new ItemForm(); itemForm.TopLevel = false; itemForm.MTRL = ItemTable; itemForm.Visible = true; XModule.InsertControl(itemForm, "+PAGE(PG8,Web)"); CallCount++; }
public override void Initialize() { CustTable = XModule.GetTable("MTRL"); CustTableExtra = XModule.GetTable("MTREXTRA"); // XModule.SetEvent("ON_MTRL_POST", NameChanged); // XModule.SetEvent("ON_TRDR_POST", Page_Load); form1 = new panel1(); itemForm = new ItemForm(); p2 = new panel2(); itemForm.TopLevel = false; itemForm.MTRL = CustTable; itemForm.MTREXTRA = CustTableExtra; itemForm.CompanyId = this.XSupport.ConnectionInfo.CompanyId; //itemForm.XSupport = this.XSupport; // MessageBox.Show("SELECT A.COMPANY,A.PRCCATEGORY,A.CODE,A.NAME,A.ACNMSK,A.ISACTIVE,A.PRICEZONE " + // "FROM [DEMO].[dbo].[PRCCATEGORY] A WHERE A.COMPANY=" + this.XSupport.ConnectionInfo.CompanyId + " ORDER BY A.PRCCATEGORY"); XTable pRCCategories = this.XSupport.GetSQLDataSet( "SELECT A.COMPANY,A.PRCCATEGORY,A.CODE,A.NAME,A.ACNMSK,A.ISACTIVE,A.PRICEZONE " + "FROM PRCCATEGORY A WHERE A.COMPANY=" + this.XSupport.ConnectionInfo.CompanyId + " ORDER BY A.PRCCATEGORY" ); itemForm.pRCCategories = pRCCategories; // PRCCategories[1, 1].ToString(); // itemForm.dataGridView1.VirtualMode = true; // itemForm.dataGridView1.RowCount = table1.Count; itemForm.Visible = true; XModule.InsertControl(itemForm, "+PAGE(PG8,Web)"); //XModule.SetEvent("ON_TRDR", checkActive); CallCount++; }