protected void btnXoaHang_Init(object sender, EventArgs e) { ASPxButton btnButton = sender as ASPxButton; GridViewDataRowTemplateContainer container = btnButton.NamingContainer as GridViewDataRowTemplateContainer; btnButton.ClientSideEvents.Click = String.Format("function(s, e) {{ onXoaHangChanged({0}); }}", container.KeyValue); }
protected void spGiaVonReturn_Init(object sender, EventArgs e) { ASPxSpinEdit SpinEdit = sender as ASPxSpinEdit; GridViewDataRowTemplateContainer container = SpinEdit.NamingContainer as GridViewDataRowTemplateContainer; SpinEdit.ClientSideEvents.NumberChanged = String.Format("function(s, e) {{ onUnitReturnChanged({0}); }}", container.KeyValue); }
protected void memoDienGiai_Init(object sender, EventArgs e) { ASPxMemo memoEdit = sender as ASPxMemo; GridViewDataRowTemplateContainer container = memoEdit.NamingContainer as GridViewDataRowTemplateContainer; memoEdit.ClientSideEvents.TextChanged = String.Format("function(s, e) {{ onUnitReturnChanged({0}); }}", container.KeyValue); }
protected void cbLyDoXuatReturn_Init(object sender, EventArgs e) { ASPxComboBox ccbEdit = sender as ASPxComboBox; GridViewDataRowTemplateContainer container = ccbEdit.NamingContainer as GridViewDataRowTemplateContainer; ccbEdit.ClientSideEvents.ValueChanged = String.Format("function(s, e) {{ onUnitReturnChanged({0}); }}", container.KeyValue); }
protected void ASPxButton1_Init(object sender, EventArgs e) { ASPxButton button = (ASPxButton)sender; GridViewDataRowTemplateContainer templateContainer = (GridViewDataRowTemplateContainer)button.NamingContainer; button.ClientSideEvents.GotFocus = string.Format("function(s, e) {{ OnGotFocusEventHander(s, e, {0}); }}", templateContainer.KeyValue); }
protected void spGiaBanReturn_Init(object sender, EventArgs e) { ASPxSpinEdit SpinEdit = sender as ASPxSpinEdit; GridViewDataRowTemplateContainer container = SpinEdit.NamingContainer as GridViewDataRowTemplateContainer; SpinEdit.ClientSideEvents.NumberChanged = String.Format("function(s, e) {{ onUnitReturnChanged({0}); }}", container.KeyValue); int Permiss = Formats.PermissionUser(); if (Permiss == 3) { SpinEdit.ReadOnly = true; } }
protected void btnSaveRca_Click(object sender, EventArgs e) { ASPxButton btn = (ASPxButton)sender; GridViewDataRowTemplateContainer container = btn.NamingContainer as GridViewDataRowTemplateContainer; ASPxPageControl ASPxPageControl = btn.NamingContainer as ASPxPageControl; var FaultAuditRecordsId = Session["FaultAuditRecordsId"].ToInt32(0); var user = HttpContext.Current.Session["user"] as User; TextBox TbMan1 = ASPxPageControl.FindControl("TbMan1") as TextBox; TextBox TbMan2 = ASPxPageControl.FindControl("TbMan2") as TextBox; TextBox TbMan3 = ASPxPageControl.FindControl("TbMan3") as TextBox; TextBox TbMan4 = ASPxPageControl.FindControl("TbMan4") as TextBox; TextBox TbMan5 = ASPxPageControl.FindControl("TbMan5") as TextBox; TextBox TbMachine1 = ASPxPageControl.FindControl("TbMachine1") as TextBox; TextBox TbMachine2 = ASPxPageControl.FindControl("TbMachine2") as TextBox; TextBox TbMachine3 = ASPxPageControl.FindControl("TbMachine3") as TextBox; TextBox TbMachine4 = ASPxPageControl.FindControl("TbMachine4") as TextBox; TextBox TbMachine5 = ASPxPageControl.FindControl("TbMachine5") as TextBox; TextBox TbMaterial1 = ASPxPageControl.FindControl("TbMaterial1") as TextBox; TextBox TbMaterial2 = ASPxPageControl.FindControl("TbMaterial2") as TextBox; TextBox TbMaterial3 = ASPxPageControl.FindControl("TbMaterial3") as TextBox; TextBox TbMaterial4 = ASPxPageControl.FindControl("TbMaterial4") as TextBox; TextBox TbMaterial5 = ASPxPageControl.FindControl("TbMaterial5") as TextBox; TextBox TbMethod1 = ASPxPageControl.FindControl("TbMethod1") as TextBox; TextBox TbMethod2 = ASPxPageControl.FindControl("TbMethod2") as TextBox; TextBox TbMethod3 = ASPxPageControl.FindControl("TbMethod3") as TextBox; TextBox TbMethod4 = ASPxPageControl.FindControl("TbMethod4") as TextBox; TextBox TbMethod5 = ASPxPageControl.FindControl("TbMethod5") as TextBox; QmRepository.UpdateRca(FaultAuditRecordsId.ToInt32(0), TbMan1.Text, TbMan2.Text, TbMan3.Text, TbMan4.Text, TbMan5.Text, TbMachine1.Text, TbMachine2.Text, TbMachine3.Text, TbMachine4.Text, TbMachine5.Text, TbMaterial1.Text, TbMaterial2.Text, TbMaterial3.Text, TbMaterial4.Text, TbMaterial5.Text, TbMethod1.Text, TbMethod2.Text, TbMethod3.Text, TbMethod4.Text, TbMethod5.Text, user.UserName); }