凌寒飘香

____成风破浪会有时,直把云帆济沧海!

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: :: 管理 ::

                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:LinkButton ID="lbReserved" runat="server" CommandArgument='<%# Eval("DutyDate")+","+Eval("DoctorId")+","+ Eval("DeptCode")%>'
                                    CommandName="itemReserved" OnCommand="gvReservedReg_Command">预约</asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>

 

 

 

 string strReservedTime = string.Empty;
                    foreach (Control cl in this.Form.Controls)
                    {
                        if (cl.GetType() == typeof(RadioButton))
                        {
                            RadioButton rb = (RadioButton)cl;

                            DateTime dtNow = DateTime.Now;
                            DateTime dtTimeSect = Convert.ToDateTime(DutyDate + " " + rb.Text);
                            if (dtTimeSect < dtNow)
                                rb.Enabled = false;

                        }
                    }

 

 

                                    <asp:TemplateField>
                                        <ItemTemplate>

                                                   <a href="#" onclick='return openDiv3("<%#Eval("ReserveTime")%>");'>取消</a>
                                        </ItemTemplate>

 

 

                    DataRow[] rows = dtDuty.Select("DoctorId='" + item.DoctorId.ToString() + "' And DutyDate='"+item.DutyDate.ToString("yyyy-MM-dd")+"'");

posted on 2012-07-02 09:24  凌寒飘香  阅读(125)  评论(0编辑  收藏  举报