Exemplo n.º 1
0
 protected override string GetDisplayMember(Model.XModelBase selectedModel)
 {
     XCodeUserTypeInfo info = selectedModel as XCodeUserTypeInfo;
     if (info != null)
     {
         return info.NameCN;
     }
     else
     {
         return string.Empty;
     }
 }
        protected override string GetDisplayMember(Model.XModelBase selectedModel)
        {
            XCodeEquipmentCustTypeInfo info = selectedModel as XCodeEquipmentCustTypeInfo;

            if (info != null)
            {
                return(info.NameCN);
            }
            else
            {
                return(string.Empty);
            }
        }
Exemplo n.º 3
0
        protected override string GetDisplayMember(Model.XModelBase selectedModel)
        {
            XUsersInfo usersInfo = selectedModel as XUsersInfo;

            if (usersInfo != null)
            {
                return(usersInfo.RealName);
            }
            else
            {
                return(string.Empty);
            }
        }
Exemplo n.º 4
0
        protected override string GetDisplayMember(Model.XModelBase selectedModel)
        {
            XStandFilesInfo info = selectedModel as XStandFilesInfo;

            if (info != null)
            {
                return(info.FileName);
            }
            else
            {
                return(string.Empty);
            }
        }
Exemplo n.º 5
0
        protected override string GetDisplayMember(Model.XModelBase selectedModel)
        {
            XUseDeptInfo deptInfo = selectedModel as XUseDeptInfo;

            if (deptInfo != null)
            {
                return(deptInfo.DeptName);
            }
            else
            {
                return(string.Empty);
            }
        }
        protected override string GetDisplayMember(Model.XModelBase selectedModel)
        {
            XEquipmentCheckInfo info = selectedModel as XEquipmentCheckInfo;

            if (info != null)
            {
                return(info.EquipmentName);
            }
            else
            {
                return(string.Empty);
            }
        }
Exemplo n.º 7
0
        protected override string GetDisplayMember(Model.XModelBase selectedModel)
        {
            XCodeProjectTypeInfo projectTypeInfo = selectedModel as XCodeProjectTypeInfo;

            if (projectTypeInfo != null)
            {
                return(projectTypeInfo.NameCN);
            }
            else
            {
                return(string.Empty);
            }
        }
Exemplo n.º 8
0
        protected override string GetDisplayMember(Model.XModelBase selectedModel)
        {
            XStaffInfoInfo staffInfo = selectedModel as XStaffInfoInfo;

            if (staffInfo != null)
            {
                return(staffInfo.UserName);
            }
            else
            {
                return(string.Empty);
            }
        }
Exemplo n.º 9
0
 protected override void DownloadAfter(string fileName, Model.XModelBase model)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         XEquipmentReceiveWordTool.FillWordValue(fileName, model as Model.XVEquipmentReceiveInfo);
     }
     catch (Exception ex)
     {
         XMessageBox.ShowError(ex.Message);
         XErrorLogTool.WriteLog(ex.ToString());
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Exemplo n.º 10
0
        protected override void FillRowViewInfos(Model.XModelBase model, System.Data.DataRow modelRow)
        {
            XVUsersInfo info = model as XVUsersInfo;

            info.UserTypeName = XHelper.GetString(modelRow["UserTypeName"]);
        }
Exemplo n.º 11
0
        protected override string GetModelText(Model.XModelBase model)
        {
            XCodeFolderTypeInfo folderTypeInfo = model as XCodeFolderTypeInfo;

            return(folderTypeInfo.NameCN);
        }