public void UpdateTemplate() { if (SessionBox.GetUserSession().Role.Contains("矿级管理员")) { rKuangJi.Enabled = true; rKuangJi.Checked = true; } else { rKuangJi.Enabled = false; rGeRen.Checked = true; } RowSelectionModel sm = this.GridPanel1.SelectionModel.Primary as RowSelectionModel; if (sm.SelectedRows.Count > 0) { TID.SetValue(sm.SelectedRows[0].RecordID.Trim()); txtTName.Text = ""; Window1.Show(); } else { Ext.Msg.Alert("提示", "请选择要修改的模板!").Show(); } }
public void RouteMan() { RowSelectionModel sm = this.GridPanel1.SelectionModel.Primary as RowSelectionModel; if (sm.SelectedRows.Count > 0) { HBBLL hb = new HBBLL(); TID.SetValue(sm.SelectedRows[0].RecordID.Trim()); TID.Value = sm.SelectedRows[0].RecordID.Trim(); TID.Text = sm.SelectedRows[0].RecordID.Trim(); string id = TID.Value.ToString(); id = TID.Text; lblDetail.Text = hb.GetYPPTNameByID(int.Parse(id)); DetailWindow.Show(); UpdateStatus1(); Ext.DoScript("#{YPPTDetailStore}.reload();"); } else { Ext.Msg.Alert("提示", "请选择一个模板!").Show(); } }