Пример #1
0
 private async void gluGroupUser_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Index == 1)
     {
         CommonEngine.OpenInputForm(new uc_GroupUserDetail(), new Size(450, 290), false);
         await LoadGroupUser(null);
     }
 }
Пример #2
0
 private void gluLevel2_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Index == 1)
     {
         CommonEngine.OpenInputForm(new uc_Level2Detail(), new Size(450, 320), false);
         LoadLevel2(gluLevel1.EditValue + "");
     }
 }
Пример #3
0
 private async void gluProvince_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Index == 1)
     {
         CommonEngine.OpenInputForm(new uc_ProvinceDetail(), new Size(435, 265), false);
         await LoadProvince();
     }
 }
Пример #4
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);
                }
            }
        }
Пример #5
0
        private async void btnUpdate_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (curItem.Count > 0)
            {
                PRO_tblStallDRO item = await PRO_tblStallBUS.GetStallItem(CommonEngine.userInfo.UserID, ConfigEngine.Language, curItem[0].StallID);

                if (!CommonEngine.CheckValidResponseItem(item.ResponseItem))
                {
                    return;
                }

                if (item != null && item.StallItem != null)
                {
                    CommonEngine.OpenInputForm(new uc_StallDetail(this, item.StallItem), new Size(395, 300), true);
                }
            }
        }
Пример #6
0
        private async void btnDuplicated_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (curItem.Count > 0)
            {
                PRO_tblLevel2DRO item = await PRO_tblLevel2BUS.GetLevel2ByID(CommonEngine.userInfo.UserID, ConfigEngine.Language, curItem[0].Level2ID);

                if (!CommonEngine.CheckValidResponseItem(item.ResponseItem))
                {
                    return;
                }

                if (item != null && item.Level2Item != null)
                {
                    item.Level2Item.Level2ID = "";
                    CommonEngine.OpenInputForm(new uc_Level2Detail(this, item.Level2Item), new Size(450, 320), false);
                }
            }
        }
Пример #7
0
        private async void btnUpdate_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (curItem.Count > 0)
            {
                this.Cursor = Cursors.WaitCursor;
                PRO_tblDistrictDRO item = await PRO_tblDistrictBUS.GetDistrictItem(CommonEngine.userInfo.UserID, ConfigEngine.Language, curItem[0].DistrictID);

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

                if (item.DistrictItem != null)
                {
                    CommonEngine.OpenInputForm(new uc_DistrictDetail(this, item.DistrictItem), new Size(435, 270), true);
                }
            }
        }
Пример #8
0
        private async void btnUpdate_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (curItem.Count > 0)
            {
                this.Cursor = Cursors.WaitCursor;
                SYS_tblUserDRO item = await SYS_tblUserBUS.GetUserItem(CommonEngine.userInfo.UserID, ConfigEngine.Language, curItem[0].Username);

                if (!CommonEngine.CheckValidResponseItem(item.ResponseItem))
                {
                    return;
                }

                this.Cursor = Cursors.Default;

                if (item != null && item.UserItem != null)
                {
                    CommonEngine.OpenInputForm(new uc_UserDetail(this, item.UserItem), new Size(455, 460), true);
                }
            }
        }
Пример #9
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);
                }
            }
        }
Пример #10
0
 private void btnInsert_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     CommonEngine.OpenInputForm(new uc_StallDetail(this), new Size(395, 300), false);
 }
Пример #11
0
 private void btnInsert_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     CommonEngine.OpenInputForm(new uc_ProvinceDetail(this), new Size(435, 265), false);
 }
Пример #12
0
 private void btnChangePassword_ItemClick(object sender, ItemClickEventArgs e)
 {
     CommonEngine.OpenInputForm(new uc_ChangePassword(false), new System.Drawing.Size(400, 225)); //is expired 250
 }