入职单新增银行账号等字段反写员工薪酬档案问题原创
金蝶云社区-jason_wu
jason_wu
2人赞赏了该文章 3,647次浏览 未经作者许可,禁止转载编辑于2022年01月10日 14:38:03


入职单新增字段反写员工薪酬档案信息问题是:当单据日期是6月30日,生效日期是7月5日,这时候,薪酬档案就会多一条记录,但是这条记录打开是空白,因为人员基本信息都还没生成。怎么解决
1、入职单新增字段如下:

2、入职单分录实体新增一下字段

3、反写配置

4、入职单的扩展视图截图及源码
1)视图

2)源码

<?xml version="1.0"?>
<form name="EmpEnrollBizBillEditForm" col="12">
          <assign modelName="${(model.number)!}" type="string"></assign>
         <script src="${appPath}/${appCode}/web/js/shr/affair/hrman/shrAffairBillBaseHrManEdit.js"></script>
        <script src="${appPath}/${appCode}/web/js/shr/affair/hrman/empEnrollBizBillHrManEdit.js"></script>
        <jsClass name="shr.affair.hrman.EmpEnrollBizBillHrManEdit"/>
        <handler class="com.kingdee.shr.affair.web.handler.hrman.EmpEnrollBizBillHrManEditHandler" />
        <header>
                <toolbar>
                        <button name="save" visible="true" caption="保存"/>
                        <button name="submit" visible="true" caption="提交工作流" customData="{nextUipk: 'com.kingdee.eas.hr.affair.app.EmpEnrollBizBill'}"/>
                        <button name="submitEffect" visible="true" caption="提交生效"  customData="{nextUipk: 'com.kingdee.eas.hr.affair.app.EmpEnrollBizBill'}"/>
                        <button name="cancel" visible="true" caption="取消"/>
                        <button name="workFlowDiagram" visible="true" />
                        <button name="auditResult" visible="true" />
                        <button name="templatePrint" caption="套打" />
                        <!--button name="enrollreadcard" caption="读卡"  class="btn-primary" /-->
                </toolbar>
        </header>
        <!--OBJECT classid="clsid:10946843-7507-44FE-ACE8-2B3483D179B7"
                          id="CVR_IDCard" name="CVR_IDCard" width="0" height="0" >
                </OBJECT-->
        <group colspan="12">
                <group name="apply" caption="入职人员信息">
                        <field name="entrys.empNumber" label="员工编码" required='true'></field>
                        <field name="entrys.empName" label="员工姓名" required='true'></field>
                        <field name="entrys.IDCardNo" label="身份证号码"  placeholder="身份证,护照至少输入一项"></field>
                        <field name="entrys.passportNo" label="护照号码"></field>
                        <field name="entrys.gender" readonly="true"></field>
                        <field name="entrys.birthday" readonly="true"></field>
                        <field name="entrys.myFolk" label="民族"></field>
                        <field name="entrys.nativePlace" label="籍贯"></field>
                        <field name="entrys.standing" uipk="com.kingdee.eas.basedata.hraux.app.Standing.F7" label="个人性质"></field>
                       <field name="entrys.position" dataType="F7" uipk="com.kingdee.eas.basedata.org.app.TargetPosition.F7" required="true" label="岗位"></field>
                        <!--field name="entrys.position.adminOrgUnit.company" label="公司" readonly="true"></field-->
                        <!--field name="entrys.position.adminOrgUnit.department" label="部门" readonly="true"></field-->
                        <!--field name="entrys.position.adminOrgUnit.office" label="科室" readonly="true"></field-->
                        <!--field name="entrys.position.adminOrgUnit.levelFourGroup" label="班组" readonly="true"></field-->
                        <field name="entrys.adminOrg" readonly="true" label="所属组织"></field>
                        <field name="entrys.job"  readonly="true" label="职位"></field>
                        <field name="entrys.jobGrade" dataType = "F7" uipk="com.kingdee.eas.hr.org.app.JobGrade.F7" label="职等"></field>
                        <field name="entrys.enrollDate"   dataType = "DATE"  label="入职日期" yearRange="1940:2900" required='true'></field>
                        <field name="entrys.probation" validate="{range: '[0,100]'}"></field>
                        <field name="entrys.telNum" dataType="string"  label='联系电话' max_length="80"></field>
                        <field name="entrys.joinGroupDate" label="加入集团日期"></field>
                        <field name="entrys.description" ctrl="textArea" dataType="string" colspan="2" rows="2" label="备注"></field>        
                </group>
                <group name="idCardInfo" caption="身份证信息">
                           <field name="entrys.idCardAddress" label="身份证地址"></field>
                        <field name="entrys.idCardIssued" label="签发机关"></field>
                        <field name="entrys.idCardStartDate" label="有效期" required='true'></field>
                        <field name="entrys.idCardEndDate" label="至" required='true'></field>
                </group>
            <group name="bankInfo" caption="银行信息">
                        <field name="entrys.bankName" label="银行名称"  uipk="com.kingdee.shr.compensation.app.Bank.F7"  required='true' dataType = "F7"></field>
                        <field name="entrys.accountNo"    label="银行账号" required='true'></field>
                        <field name="entrys.enableBank"  label="启用"></field>
                </group>
                <group name="action" caption="入职事务信息">
                        <field name="entrys.hrBizDefine" dataType = "F7" uipk="com.kingdee.eas.hr.base.app.HRBizDefine.F7" label="事务类型" required='true'  readonly="true"></field>
                        <field name="entrys.empType" dataType = "F7" uipk="com.kingdee.eas.hr.base.app.EmployeeType.F7"  label="目标用工状态" ></field>
                        <field name="entrys.affairActionReason" dataType = "F7" uipk="com.kingdee.eas.hr.base.app.AffairActionReason.F7" label="变动类型" required='true'></field>
                        <field name="entrys.variationReason" dataType = "F7" uipk="com.kingdee.eas.hr.base.app.VariationReason.F7" label="变动原因"></field>
                        <field name="entrys.bizDate"   dataType = "DATE"  label="生效日期" yearRange="1940:2900" required='true'></field>
                        <field name="billState" type="hidden"></field>
                </group>
    <group>
        <attachment />
        </group>
                <group name="bill" caption="单据信息">
                        <field name="number" required="true" label="单据编号" dataType="string" max_length="80"></field>
                        <field name="applyDate"  dataType = "DATE"  label="制单日期" readonly='true'></field>
                        <field name="applier" label="制单人" readonly="true"></field>
                </group>
        </group>
       
        <div id="personInfoDialog"></div>
        <field name="entrys.person.id" type="hidden"></field>
        <field name="entrys.oldAdminOrg.id" type="hidden"></field>
        <field name="entrys.oldPosition.id" type="hidden"></field>
        <field name="entrys.oldEmpType.id" type="hidden"></field>
        <field name="entrys.useOldNumber" type="hidden"></field>
        <field name="entrys.existPersonID" type="hidden"></field>
        <field name="entrys.enrollAgain" type="hidden"></field>
        <field name="entrys.isPrimary" type="hidden"></field>
</form>