Esempio n. 1
0
        private void barButtonItem_Vocabulary_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Frm_Sentence frm = new Frm_Sentence();

            frm.ShowDialog();
            this.robjectId = frm.objectid;
        }
Esempio n. 2
0
        private void barButtonItem_EditSentence_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Frm_Sentence card = new Frm_Sentence();

            card.g_sentenceInfo.SENTENCEINFO_EVENTINFOID       = sentenceInfo.SENTENCEINFO_EVENTINFOID;
            card.g_sentenceInfo.SENTENCEINFO_CREATETIME        = sentenceInfo.SENTENCEINFO_CREATETIME;
            card.g_sentenceInfo.SENTENCEINFO_ID                = sentenceInfo.SENTENCEINFO_ID;
            card.g_sentenceInfo.SENTENCEINFO_IFINVALID         = sentenceInfo.SENTENCEINFO_IFINVALID;
            card.g_sentenceInfo.SENTENCEINFO_LASTMODIFIEDTIME  = sentenceInfo.SENTENCEINFO_LASTMODIFIEDTIME;
            card.g_sentenceInfo.SENTENCEINFO_MODIFICATIONTIMES = sentenceInfo.SENTENCEINFO_MODIFICATIONTIMES;

            if (card.ShowDialog() == DialogResult.OK)
            {
                //列表刷新
            }
        }
Esempio n. 3
0
        private void barButtonItem_CreateSentence_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Frm_Sentence card = new Frm_Sentence();

            card.g_sentenceInfo.SENTENCEINFO_EVENTINFOID       = sentenceInfo.SENTENCEINFO_EVENTINFOID;
            card.g_sentenceInfo.SENTENCEINFO_CREATETIME        = DateTime.Now.ToString();
            card.g_sentenceInfo.SENTENCEINFO_ID                = Guid.NewGuid().ToString();
            card.g_sentenceInfo.SENTENCEINFO_IFINVALID         = "F";
            card.g_sentenceInfo.SENTENCEINFO_LASTMODIFIEDTIME  = card.g_sentenceInfo.SENTENCEINFO_CREATETIME;
            card.g_sentenceInfo.SENTENCEINFO_MODIFICATIONTIMES = "0";

            if (card.ShowDialog() == DialogResult.OK)
            {
                //列表刷新
            }
        }