C#类型转换

来源:互联网 发布:软件测试人员待遇 编辑:程序博客网 时间:2024/04/27 21:59

 //替换运算         
            foreach (ZJS.ZJSDataSet.PubDataSet.ZJS_PUBDataSet.PUB_EmployeeRow row in dt.Rows)
            {              
                    row.EmployeeTypeText = ComOptionBase.GetItemNameFormID(row.EmployeeType);
                    row.ComeFromText = ComOptionBase.GetItemNameFormID(row.ComeFrom);
                    row.CertificateTypeText = ComOptionBase.GetItemNameFormID(row.CertificateType);
                    row.PolityVisageText = ComOptionBase.GetItemNameFormID(row.PolityVisage);
                    row.StudyExperienceText = ComOptionBase.GetItemNameFormID(row.StudyExperience);
                    row.WedlockStateText = ComOptionBase.GetItemNameFormID(row.WedlockState);
                    row.CompanyIDText = ZJS.Client.UIBaseClass.OrginfoXML.GetCompanyName(row.CompanyID);
                    row.IsPractiseText = ComOptionBase.GetItemNameFormID(row.IsPractise);
                    if (row.Isview == 1)
                    {
                        row.IsviewText = "否";
                    }
                    else
                    {
                        row.IsviewText = "是";
                    }

                    if (row.Sex == 1)
                    {
                        row.SexText = "男";
                    }
                    else
                    {
                        row.SexText = "女";
                    }                

原创粉丝点击