コード例 #1
0
ファイル: FormMarkService.cs プロジェクト: kimykunjun/test
        private void BindData()
        {
            myDataTable = mySpaBooking.GetServiceSession(myServiceSessionID);

            myDataTable.Rows[0]["nStatusID"]      = 5;
            myDataTable.Rows[0]["nMarkedByID"]    = ACMSLogic.User.EmployeeID;
            myDataTable.Rows[0]["nEmployeeID"]    = ACMSLogic.User.EmployeeID;
            myDataTable.Rows[0]["dtLastEditDate"] = DateTime.Now;

            lkpEdtTherapist.DataBindings.Clear();
            dtEdtEndTime.DataBindings.Clear();
            lkpEdtPackageID.DataBindings.Clear();
            dtEdtStartTime.DataBindings.Clear();
            lkpEdtServiceCode.DataBindings.Clear();
            MemoEditRemark.DataBindings.Clear();
            dtEditDate.DataBindings.Clear();
            ucMemberID1.DataBindings.Clear();
            ucMemberID1.DataBindings.Add("EditValue", myDataTable, "strMembershipID");
            dtEditDate.DataBindings.Add("EditValue", myDataTable, "dtDate");
            lkpEdtTherapist.DataBindings.Add("EditValue", myDataTable, "nServiceEmployeeID");
            dtEdtEndTime.DataBindings.Add("EditValue", myDataTable, "dtEndTime");
            lkpEdtPackageID.DataBindings.Add("EditValue", myDataTable, "nPackageID");
            dtEdtStartTime.DataBindings.Add("EditValue", myDataTable, "dtStartTime");
            lkpEdtServiceCode.DataBindings.Add("EditValue", myDataTable, "strServiceCode");
            MemoEditRemark.DataBindings.Add("EditValue", myDataTable, "strRemarks");
        }