Beispiel #1
0
        private async void btnUpdate_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (curItem.Count > 0)
            {
                PRO_tblProvinceDRO item = await PRO_tblProvinceBUS.GetProvinceItem(CommonEngine.userInfo.UserID, ConfigEngine.Language, curItem[0].ProvinceID);

                if (item.ProvinceItem != null)
                {
                    CommonEngine.OpenInputForm(new uc_ProvinceDetail(this, item.ProvinceItem), new Size(435, 265), true);
                }
            }
        }
Beispiel #2
0
        private async void btnDuplicated_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (curItem.Count > 0)
            {
                this.Cursor = Cursors.WaitCursor;
                PRO_tblProvinceDRO item = await PRO_tblProvinceBUS.GetProvinceItem(CommonEngine.userInfo.Username, ConfigEngine.Language, curItem[0].ProvinceID);

                if (!CommonEngine.CheckValidResponseItem(item.ResponseItem))
                {
                    return;
                }
                this.Cursor = Cursors.Default;

                if (item != null && item.ProvinceItem != null)
                {
                    item.ProvinceItem.ProvinceID = "";
                    CommonEngine.OpenInputForm(new uc_ProvinceDetail(this, item.ProvinceItem), new Size(435, 265), true);
                }
            }
        }