示例#1
0
        private void myRadDataForm_AddedNewItem(object sender, AddedNewItemEventArgs e)
        {
            VoucherItemKind dmItem = (VoucherItemKind)myRadDataForm.CurrentItem;

            //dmItem.ParentCode = "02";
            //dmItem.Code = CommonDataLogic.GenerateCodeForBusiDataDictionary(dmItem.ParentCode);
            dmItem.Kind           = 2;
            dmItem.OrganizationID = VMGlobal.CurrentUser.OrganizationID;
        }
示例#2
0
        private void myRadDataForm_AddedNewItem(object sender, AddedNewItemEventArgs e)
        {
            Storage storage = (Storage)myRadDataForm.CurrentItem;

            storage.OrganizationID = VMGlobal.CurrentUser.OrganizationID;
        }
示例#3
0
        private void myRadDataForm_AddedNewItem(object sender, AddedNewItemEventArgs e)
        {
            SysUser user = (SysUser)myRadDataForm.CurrentItem;

            user.OrganizationID = VMGlobal.CurrentUser.OrganizationID;
        }
示例#4
0
        private void myRadDataForm_AddedNewItem(object sender, AddedNewItemEventArgs e)
        {
            SysOrganizationType type = (SysOrganizationType)myRadDataForm.CurrentItem;

            type.OrganizationID = VMGlobal.CurrentUser.OrganizationID;
        }
        private void myRadDataForm_AddedNewItem(object sender, AddedNewItemEventArgs e)
        {
            RetailShoppingGuide guide = (RetailShoppingGuide)myRadDataForm.CurrentItem;

            guide.OrganizationID = VMGlobal.CurrentUser.OrganizationID;
        }
        //private void myRadDataForm_BeginningEdit(object sender, System.ComponentModel.CancelEventArgs e)
        //{
        //    RetailShift shift = (RetailShift)myRadDataForm.CurrentItem;
        //    if (shift.OrganizationID != VMGlobal.CurrentUser.OrganizationID)
        //    {
        //        MessageBox.Show("只能修改本机构创建的班次信息.");
        //        e.Cancel = true;
        //    }
        //}

        private void myRadDataForm_AddedNewItem(object sender, AddedNewItemEventArgs e)
        {
            RetailShift shift = (RetailShift)myRadDataForm.CurrentItem;

            shift.OrganizationID = VMGlobal.CurrentUser.OrganizationID;
        }
        private void myRadDataForm_AddedNewItem(object sender, AddedNewItemEventArgs e)
        {
            RetailTactic tactic = (RetailTactic)myRadDataForm.CurrentItem;

            tactic.OrganizationID = VMGlobal.CurrentUser.OrganizationID;
        }
示例#8
0
        private void myRadDataForm_AddedNewItem(object sender, AddedNewItemEventArgs e)
        {
            VIPCard card = (VIPCard)myRadDataForm.CurrentItem;

            card.OrganizationID = VMGlobal.CurrentUser.OrganizationID;
        }
示例#9
0
        private void myRadDataForm_AddedNewItem(object sender, AddedNewItemEventArgs e)
        {
            ShopExpenseKind kind = (ShopExpenseKind)myRadDataForm.CurrentItem;

            kind.OrganizationID = VMGlobal.CurrentUser.OrganizationID;
        }