Exemple #1
0
$col->width = 80;
$col = $dg->addColumn("نوع سازمان", "org_title", "string");
$col->width = 80;
$col = $dg->addColumn("عنوان شغل", "title", "string");
$col->width = 100;
$col = $dg->addColumn("دلیل خاتمه", "unempTitle", "string");
$col->width = 100;
$col = $dg->addColumn("عملیات", "", "string");
$col->renderer = "PersonEmplyment.opRender";
$col->width = 50;
$dg->height = 400;
$dg->width = 780;
$dg->DefaultSortField = "row_no";
$dg->DefaultSortDir = "ASC";
$dg->autoExpandColumn = "unit";
if ($accessObj->InsertAccess()) {
    $dg->addButton = true;
    $dg->addHandler = "function(){PersonEmplymentObject.AddEmp();}";
}
$dg->EnableSearch = false;
$grid = $dg->makeGrid_returnObjects();
$drp_org_type = manage_domains::DRP_OrgType("org_type", "", "with:50%");
$drp_PType = manage_domains::DRP_PersonTypeNoAccess("person_type", "", "with:50%");
$drp_EmpState = manage_domains::DRP_EmpState("emp_state", "", "", "with:60%");
$drp_EmpMode = manage_domains::DRP_EmpMode("emp_mode", "", "", "with:60%");
$drp_UnEmp = manage_domains::DRP_UnEmpCause("unemp_cause", "", "", "with:60%");
?>
<script>
PersonEmplyment.prototype.afterLoad = function()
{
	this.grid = <?php 
Exemple #2
0
            if( $objWrt->corrective )
            {
				$corrective_writ_id = $objWrt->writ_id ;
                $corrective_writ_ver = $objWrt->writ_ver ;
                        
                if(manage_writ::corrective_writs_is_used($corrective_writ_id,$corrective_writ_ver,$objWrt->staff_id))
    				$disable_state = 'disabled=true';
			}
                 
			?>   
	    	<input type="button" class="big_button" onclick="WritFormObject.Prior_Corrective_Writ(); " value="لغو آخرين اصلاح"  <? $disable_state ?> >
			<?          
		}?>
        </td>  
    </tr>
	<?}if(!$objWrt->corrective && !$readOnly && $item_accessObj->InsertAccess()){?>
    <tr>
		<td colspan="4" align="center"><br><hr><br>
			<div id="div_fs">
				<div id="pnl_fs">
					<?php 
echo $drp_not_assigned_items;
?>
<input type="button" class="button" value="افزودن" onclick="WritFormObject.AddSalaryItem();">
				</div>
			</div>
		</td>
	</tr>
	<?}?>
  </table>
</div>