示例#1
0
文件: ContrStaff.cs 项目: mnisl/OD
		private void gridEmp_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			if(PayPeriods.List.Length==0) {
				MsgBox.Show(this,"The adminstrator needs to setup pay periods first.");
				return;
			}
			if(!butTimeCard.Enabled) {
				return;
			}
			FormTimeCard FormTC=new FormTimeCard(_listEmployees);
			FormTC.EmployeeCur=_listEmployees[e.Row];
			FormTC.ShowDialog();
			ModuleSelected(PatCurNum);
		}
示例#2
0
文件: ContrStaff.cs 项目: mnisl/OD
		private void butBreaks_Click(object sender,EventArgs e) {
			if(PayPeriods.List.Length==0) {
				MsgBox.Show(this,"The adminstrator needs to setup pay periods first.");
				return;
			}
			FormTimeCard FormTC=new FormTimeCard(_listEmployees);
			FormTC.EmployeeCur=EmployeeCur;
			FormTC.IsBreaks=true;
			FormTC.ShowDialog();
			ModuleSelected(PatCurNum);
		}
示例#3
0
		private void gridMain_CellDoubleClick(object sender,UI.ODGridClickEventArgs e) {
			FormTimeCard FormTC=new FormTimeCard(_listEmployees);
			FormTC.IsByLastName=true;
			FormTC.EmployeeCur=Employees.GetEmp(PIn.Long(MainTable.Rows[e.Row]["EmployeeNum"].ToString()));
			FormTC.SelectedPayPeriod=SelectedPayPeriod;
			FormTC.ShowDialog();
			FillMain();
		}