Ejemplo n.º 1
0
    private void InitControlValue()
    {
        Biz_Com_Code_Info objCode = new Biz_Com_Code_Info();

        objCode.GetApprovalBizType(ddlBizType, "", true, 100);
        objCode.GetApprovalStatus(ddlApprovalStatus, "", true, 100);

        for (int i = 0; i < ddlApprovalStatus.Items.Count; i++)
        {
            if ((ddlApprovalStatus.Items[i].Value == "") ||
                (ddlApprovalStatus.Items[i].Value == "CFT") ||
                (ddlApprovalStatus.Items[i].Value == "RFT"))
            {
                continue;
            }
            else
            {
                ddlApprovalStatus.Items.Remove(ddlApprovalStatus.Items[i]);
                i = i - 1;
            }
        }

        wdcSDate.Value = Convert.ToDateTime(DateTime.Now.Year.ToString() + "-" + DateTime.Now.Month.ToString().PadLeft(2, '0') + "-01 00:00:00");
    }