示例#1
0
        private void myRadDataForm_BeginningEdit(object sender, System.ComponentModel.CancelEventArgs e)
        {
            RetailMonthTaget kind = (RetailMonthTaget)myRadDataForm.CurrentItem;

            if (kind.OrganizationID == VMGlobal.CurrentUser.OrganizationID)
            {
                MessageBox.Show("不能修改本机构自身的月度指标.");
                e.Cancel = true;
            }
        }
示例#2
0
 public RetailMonthTagetBO(RetailMonthTaget target)
 {
     this.ID        = target.ID;
     OrganizationID = target.OrganizationID;
     this.Year      = target.Year;
     Month          = target.Month;
     SaleTaget      = target.SaleTaget;
     CreateTime     = target.CreateTime;
     CreatorID      = target.CreatorID;
 }