private void DoClear()
 {
     PunchUpdate.SelectValueDDL(ddlConfirmStatus, "");
     PunchUpdate.SelectValueDDL(ddlConfirmPunchFlag, "");
     PunchUpdate.SelectValueDDL(ddlAbnormalFlag, "");
     ucStartPunchDate.ucSelectedDate = "";
     ucEndPunchDate.ucSelectedDate   = "";
     gvMain.Visible = false;
 }
Beispiel #2
0
    private void DoClear()
    {
        if (!string.IsNullOrEmpty(Quire_to_Modify.EmpID))
        {
            lblEmpName.Text          = Quire_to_Modify.EmpName;
            lblPunchDate.Text        = Quire_to_Modify.PunchDate;
            lblPunchTime.Text        = Quire_to_Modify.PunchTime;
            lblConfirmPunchFlag.Text = Quire_to_Modify.ConfirmPunchFlagGCN;
            ucRemedyPunchTime.ucDefaultSelectedHH = Quire_to_Modify.PunchTime.Split(":")[0];
            ucRemedyPunchTime.ucDefaultSelectedMM = Quire_to_Modify.PunchTime.Split(":")[1];

            //補登理由-下拉塞值
            ddlRemedyReasonID_Data();
            //非公務-下拉塞值
            ddlRemedy_AbnormalReasonID_Data();

            //修改前原因
            if (Quire_to_Modify.AbnormalFlag.Trim() == "2")
            {
                rdoAbnormalFlag2.Checked = true;
                lblAbnormalReasonCN.Text = Quire_to_Modify.AbnormalReasonCN.Trim();
                lbl_.Visible             = true;
            }
            else
            {
                rdoAbnormalFlag1.Checked    = true;
                lblAbnormalReasonCN.Visible = false;
            }

            //補登原因
            if (Quire_to_Modify.Remedy_AbnormalFlag.Trim() == "2")
            {
                rdoRemedy_AbnormalFlag2.Checked = true;
                PunchUpdate.SelectValueDDL(ddlRemedy_AbnormalReasonID, Quire_to_Modify.Remedy_AbnormalReasonID.Trim());
                ddlRemedy_AbnormalReasonID.Enabled = true;
            }
            else
            {
                rdoRemedy_AbnormalFlag1.Checked    = true;
                ddlRemedy_AbnormalReasonID.Enabled = false;
            }

            //其他說明
            lblAbnormalDesc.Text        = Quire_to_Modify.AbnormalDesc.Trim();
            txtRemedy_AbnormalDesc.Text = Quire_to_Modify.AbnormalDesc.Trim();
        }
        else
        {
            //Response.Redirect("PunchUpdateInquire.aspx");
        }
    }
Beispiel #3
0
 protected void rdoRemedy_AbnormalFlag1_CheckedChanged(object sender, EventArgs e)
 {
     PunchUpdate.SelectValueDDL(ddlRemedy_AbnormalReasonID, "");
     ddlRemedy_AbnormalReasonID.Enabled = false;
 }