예제 #1
0
 public string GetSceneName()
 {
     if (SceneName.IsInvStr())
     {
         return(TDID.Replace(BaseConstMgr.Prefix_Scene, ""));
     }
     return(SceneName);
 }
예제 #2
0
 public string GetTDID()
 {
     if (TDID.IsInv())
     {
         return(LastName + FirstName);
     }
     return(TDID);
 }
예제 #3
0
        public string GetRawSceneName()
        {
            var ret = SceneName;

            if (ret.IsInv())
            {
                ret = TDID.Replace(Const.Prefix_Battle, "");
            }
            return(ret);
        }
예제 #4
0
    public void PlaceUpdate()
    {
        RowSelectionModel sm = this.GridPanel2.SelectionModel.Primary as RowSelectionModel;

        if (sm.SelectedRows.Count == 1)
        {
            TDID.SetValue(sm.SelectedRows[0].RecordID.Trim());
            Window2.Show();
        }
        else
        {
            Ext.Msg.Alert("提示", "请只选择一个要修改的地点!").Show();
        }
    }
예제 #5
0
        public virtual string GetSceneName()
        {
            var ret = SceneName;

            if (ret.IsInv())
            {
                ret = TDID.Replace(Const.Prefix_Battle, "");
            }
            if (BaseSettingData.IsSimpleTerrin)
            {
                ret = ret + Const.Suffix_Simple;
            }
            return(ret);
        }
        private void Submit_Click(object sender, EventArgs e)
        {
            DependentUser dp = new DependentUser(TDID.Text.ToString(), TDName.Text.ToString(), Convert.ToInt32(DType.SelectedValue.ToString()), CEID.SelectedValue.ToString(), TDOB.Value);

            if (mem.RegisterDependent(dp))
            {
                MessageBox.Show("Update Successful");
            }
            else
            {
                MessageBox.Show("Update Failed");
            }
            dataGridView2.Refresh();
            TDID.Clear();
            TDName.Clear();
            //TDOB.Clear();

            cb.FillDataGrid(dataGridView2, "Dependent");
            //ViewDependent();
        }