Пример #1
0
		private void SaveRecord()
		{
            BranchTransferDetails clsDetails = new BranchTransferDetails();

            clsDetails.BranchTransferID = long.Parse(lblBranchTransferID.Text);
            clsDetails.BranchTransferNo = lblBranchTransferNo.Text;
            clsDetails.BranchTransferDate = Convert.ToDateTime(lblBranchTransferDate.Text);
            clsDetails.BranchIDFrom = Convert.ToInt16(cboBranchFrom.SelectedItem.Value);
            clsDetails.BranchIDTo = Convert.ToInt16(cboBranchTo.SelectedItem.Value);
            clsDetails.RequiredDeliveryDate = Convert.ToDateTime(txtRequiredDeliveryDate.Text);
            clsDetails.TransferrerID = Convert.ToInt64(Session["UID"].ToString());
            clsDetails.TransferrerName = Session["Name"].ToString();
            clsDetails.RequestedBy = txtRequestedBy.Text;
            clsDetails.Status = BranchTransferStatus.Open;
            clsDetails.Remarks = txtRemarks.Text;

            BranchTransfer clsBranchTransfer = new BranchTransfer();
            clsBranchTransfer.Update(clsDetails);
            clsBranchTransfer.CommitAndDispose();
		}