Beispiel #1
0
    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();
        }
    }